@evergis/react 2.0.123 → 2.0.124
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/react.cjs.development.js +9 -3
- package/dist/react.cjs.development.js.map +1 -1
- package/dist/react.cjs.production.min.js +1 -1
- package/dist/react.cjs.production.min.js.map +1 -1
- package/dist/react.esm.js +9 -3
- package/dist/react.esm.js.map +1 -1
- package/dist/symbols/mockFeatures.d.ts +4 -0
- package/package.json +2 -2
package/dist/react.esm.js
CHANGED
|
@@ -34,6 +34,7 @@ import { StaticImageSymbol } from '@evergis/sgis/es/symbols/point/StaticImageSym
|
|
|
34
34
|
import { SquareSymbol } from '@evergis/sgis/es/symbols/point/Square';
|
|
35
35
|
import { MaskedImage } from '@evergis/sgis/es/symbols/point/MaskedImage';
|
|
36
36
|
import { H3Symbol } from '@evergis/sgis/es/symbols/H3Symbol';
|
|
37
|
+
import { H3Feature } from '@evergis/sgis/es/features/H3Feature';
|
|
37
38
|
import { Canvas } from '@evergis/sgis/es/painters/DomPainter/Canvas';
|
|
38
39
|
import { sGisClickEvent } from '@evergis/sgis/es/commonEvents';
|
|
39
40
|
import { ClusterLayer as ClusterLayer$1 } from '@evergis/sgis/es/layers/ClusterLayer';
|
|
@@ -2793,6 +2794,9 @@ const lineFeature = /*#__PURE__*/new Polyline([[0, -57], [26, -57], [40, -35], [
|
|
|
2793
2794
|
const polygonFeature = /*#__PURE__*/new Polygon([[50, -15], [80, -33], [80, -67], [50, -85], [20, -67], [20, -33], [50, -15]], {
|
|
2794
2795
|
crs: plain
|
|
2795
2796
|
});
|
|
2797
|
+
const h3gridFeature = /*#__PURE__*/new H3Feature([[50, -15], [80, -33], [80, -67], [50, -85], [20, -67], [20, -33], [50, -15]], {
|
|
2798
|
+
crs: plain
|
|
2799
|
+
});
|
|
2796
2800
|
const lineLegendFeature = /*#__PURE__*/new Polyline([[0, -50], [100, -50]], {
|
|
2797
2801
|
crs: plain
|
|
2798
2802
|
});
|
|
@@ -2807,12 +2811,14 @@ const MAP_LEGEND_FEATURES = {
|
|
|
2807
2811
|
};
|
|
2808
2812
|
const LEGEND_FEATURES = {
|
|
2809
2813
|
polyline: lineLegendFeature,
|
|
2810
|
-
polygon: polygonLegendFeature
|
|
2814
|
+
polygon: polygonLegendFeature,
|
|
2815
|
+
h3grid: h3gridFeature
|
|
2811
2816
|
};
|
|
2812
2817
|
const MOCK_FEATURES = {
|
|
2813
2818
|
point: pointFeature,
|
|
2814
2819
|
polyline: lineFeature,
|
|
2815
|
-
polygon: polygonFeature
|
|
2820
|
+
polygon: polygonFeature,
|
|
2821
|
+
h3grid: h3gridFeature
|
|
2816
2822
|
};
|
|
2817
2823
|
|
|
2818
2824
|
function getSymbolRenders(symbol, size, features) {
|
|
@@ -2837,7 +2843,7 @@ function getSymbolRenders(symbol, size, features) {
|
|
|
2837
2843
|
}
|
|
2838
2844
|
|
|
2839
2845
|
if (isSGisH3Symbol(symbol)) {
|
|
2840
|
-
return symbol.renderFunctionAsync(featuresToRender.
|
|
2846
|
+
return symbol.renderFunctionAsync(featuresToRender.h3grid, resolution, plain);
|
|
2841
2847
|
}
|
|
2842
2848
|
|
|
2843
2849
|
return symbol.renderFunctionAsync(featuresToRender.point, resolution, plain);
|