@h21-map/yandex-drawing-manager
Advanced tools
Comparing version 9.3.0 to 10.3.0
11
index.js
@@ -514,5 +514,7 @@ function DrawingManager(map, opts) { | ||
let positions = []; | ||
let position = null; | ||
let arrayArea = {}; | ||
let id = null; | ||
if (!me.isMoreArea) { | ||
let latLng = []; | ||
for (var n = 0; n < coordinates.length; n++) { | ||
@@ -524,7 +526,8 @@ let item = coordinates[n]; | ||
} | ||
positions.push(position); | ||
latLng.push(position); | ||
position = positions; | ||
id = 0; | ||
} | ||
positions.push(latLng); | ||
position = positions[0]; | ||
let center = { | ||
@@ -538,4 +541,6 @@ latitude: ymaps.util.bounds.getCenter(me._area.geometry.getBounds())[0], | ||
positions, | ||
position, | ||
center: center, | ||
} | ||
console.log(eventArea, 'eventArea') | ||
return { eventArea }; | ||
@@ -542,0 +547,0 @@ |
@@ -5,3 +5,3 @@ | ||
"scope": "@h21-map", | ||
"version": "9.3.0", | ||
"version": "10.3.0", | ||
"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
34459
823