@h21-map/yandex-drawing-manager
Advanced tools
Comparing version 4.0.4 to 4.0.5
@@ -236,2 +236,3 @@ function DrawingManager(map, opts) { | ||
var patch = []; | ||
var _patch = []; | ||
me._area = null; | ||
@@ -258,2 +259,3 @@ me._setDrawing(false); | ||
me._area.geometry.setCoordinates(patch); | ||
_patch.push(event.get('coords')); | ||
me.map.container.getElement().style.cursor = 'crosshair'; | ||
@@ -270,3 +272,3 @@ return false; | ||
me._setDrawing(true); | ||
me._area = new ymaps.Polygon([patch,], {}, options); | ||
me._area = new ymaps.Polygon([_patch,], {}, options); | ||
me.map.geoObjects.add(me._area); | ||
@@ -282,3 +284,3 @@ me.vertexCount++; | ||
if (me.isMoreArea) { | ||
patchAreaLatLng = patch; | ||
patchAreaLatLng = _patch; | ||
let patchAreaLatLngMax = me.findRoundPoints(patchAreaLatLng, 0.001); | ||
@@ -285,0 +287,0 @@ if (patchAreaLatLngMax) { |
@@ -5,3 +5,3 @@ | ||
"scope": "@h21-map", | ||
"version": "4.0.4", | ||
"version": "4.0.5", | ||
"description": "A library of Yandex Map JS API", | ||
@@ -8,0 +8,0 @@ "main": "index.js", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
32924
803