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