@evergis/react 2.0.112 → 2.0.114
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.esm.js
CHANGED
|
@@ -2028,7 +2028,9 @@ let ShadowedPolySymbol = /*#__PURE__*/function (_PolylineSymbol) {
|
|
|
2028
2028
|
key: "renderFunction",
|
|
2029
2029
|
value: function renderFunction(feature, resolution, crs) {
|
|
2030
2030
|
if (!(feature instanceof Poly)) return [];
|
|
2031
|
-
|
|
2031
|
+
|
|
2032
|
+
const coordinates = _get(_getPrototypeOf(ShadowedPolySymbol.prototype), "getRenderedCoordinates", this).call(this, feature, resolution, crs);
|
|
2033
|
+
|
|
2032
2034
|
const polyRender = this.getPolyRender(coordinates, feature);
|
|
2033
2035
|
const shadowRender = this.getShadow(coordinates, feature);
|
|
2034
2036
|
const vertexRenders = this.getVertexRenders(coordinates);
|
|
@@ -2280,7 +2282,7 @@ let SVGPoly = /*#__PURE__*/function (_Symbol) {
|
|
|
2280
2282
|
_createClass(SVGPoly, [{
|
|
2281
2283
|
key: "renderFunction",
|
|
2282
2284
|
value: function renderFunction(feature, resolution, crs) {
|
|
2283
|
-
const coordinates = feature instanceof Poly ? PolylineSymbol.getRenderedCoordinates(feature, resolution, crs) : feature.centroid;
|
|
2285
|
+
const coordinates = feature instanceof Poly ? new PolylineSymbol().getRenderedCoordinates(feature, resolution, crs) : feature.centroid;
|
|
2284
2286
|
this.setCirclePxRaius(crs);
|
|
2285
2287
|
this.container.innerHTML = '';
|
|
2286
2288
|
const svg = this.setSvg(coordinates);
|
|
@@ -2331,7 +2333,7 @@ let SVGPoly = /*#__PURE__*/function (_Symbol) {
|
|
|
2331
2333
|
if (!bbox || !resolution || !feature.crs.canProjectTo(bbox.crs)) return;
|
|
2332
2334
|
|
|
2333
2335
|
if (feature.__lastResolution && resolution !== feature.__lastResolution) {
|
|
2334
|
-
const newCoordinates = feature instanceof Poly ? PolylineSymbol.getRenderedCoordinates(feature, resolution, crs) : feature.centroid;
|
|
2336
|
+
const newCoordinates = feature instanceof Poly ? new PolylineSymbol().getRenderedCoordinates(feature, resolution, crs) : feature.centroid;
|
|
2335
2337
|
this.setCirclePxRaius(crs);
|
|
2336
2338
|
this.container.innerHTML = '';
|
|
2337
2339
|
const svg = this.setSvg(newCoordinates);
|
|
@@ -5048,7 +5050,7 @@ let MeasureTool = /*#__PURE__*/function (_React$Component) {
|
|
|
5048
5050
|
snappingSymbol: snapSymbol || measurePolygonSnapSymbol,
|
|
5049
5051
|
symbol: lengthSymbol || measureLengthSymbol,
|
|
5050
5052
|
renderLabelSymbol,
|
|
5051
|
-
formatters
|
|
5053
|
+
formatters
|
|
5052
5054
|
});
|
|
5053
5055
|
this.editorControl.featureDragAllowed = false;
|
|
5054
5056
|
this.editorControl.on('remove', this.removeFeature);
|