@evergis/react 4.0.22-alpha.1 → 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 +6 -2
- package/dist/index.js.map +1 -1
- package/dist/react.esm.js +6 -2
- package/dist/react.esm.js.map +1 -1
- package/package.json +4 -4
package/dist/react.esm.js
CHANGED
|
@@ -10836,7 +10836,10 @@ const useDataSources = ({ type: widgetType, config, attributes, filters, layerPa
|
|
|
10836
10836
|
const descriptionResponse = await api.eql.getQueryDescription(getProps);
|
|
10837
10837
|
return {
|
|
10838
10838
|
items: queryResponse.features,
|
|
10839
|
-
attributeDefinition: descriptionResponse,
|
|
10839
|
+
attributeDefinition: descriptionResponse.reduce((acc, curr) => ({
|
|
10840
|
+
...acc,
|
|
10841
|
+
[curr.attributeName]: curr,
|
|
10842
|
+
}), {}),
|
|
10840
10843
|
};
|
|
10841
10844
|
}
|
|
10842
10845
|
return api.layers.getFeatures(layerName, {
|
|
@@ -10938,8 +10941,9 @@ const useDataSources = ({ type: widgetType, config, attributes, filters, layerPa
|
|
|
10938
10941
|
return;
|
|
10939
10942
|
}
|
|
10940
10943
|
const hasEmptyCoordinate = coordinates.some(([x, y]) => !x && !y);
|
|
10941
|
-
if (hasEmptyCoordinate)
|
|
10944
|
+
if (hasEmptyCoordinate) {
|
|
10942
10945
|
return;
|
|
10946
|
+
}
|
|
10943
10947
|
/* const bbox = new Bbox(coordinates[0], coordinates[1], map.crs);
|
|
10944
10948
|
const resolution = Math.max(bbox.width / painter.width, bbox.height / painter.height);
|
|
10945
10949
|
|