@evergis/react 4.0.22-alpha.2 → 4.0.22-alpha.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -10838,7 +10838,10 @@ const useDataSources = ({ type: widgetType, config, attributes, filters, layerPa
10838
10838
  const descriptionResponse = await api.eql.getQueryDescription(getProps);
10839
10839
  return {
10840
10840
  items: queryResponse.features,
10841
- attributeDefinition: descriptionResponse,
10841
+ attributeDefinition: descriptionResponse.reduce((acc, curr) => ({
10842
+ ...acc,
10843
+ [curr.attributeName]: curr,
10844
+ }), {}),
10842
10845
  };
10843
10846
  }
10844
10847
  return api.layers.getFeatures(layerName, {
@@ -10940,8 +10943,9 @@ const useDataSources = ({ type: widgetType, config, attributes, filters, layerPa
10940
10943
  return;
10941
10944
  }
10942
10945
  const hasEmptyCoordinate = coordinates.some(([x, y]) => !x && !y);
10943
- if (hasEmptyCoordinate)
10946
+ if (hasEmptyCoordinate) {
10944
10947
  return;
10948
+ }
10945
10949
  /* const bbox = new Bbox(coordinates[0], coordinates[1], map.crs);
10946
10950
  const resolution = Math.max(bbox.width / painter.width, bbox.height / painter.height);
10947
10951