@h21-map/yandex-drawing-manager
Advanced tools
Comparing version 4.0.6 to 5.0.1
23
index.js
@@ -501,2 +501,4 @@ function DrawingManager(map, opts) { | ||
let positions = []; | ||
let arrayArea = {}; | ||
let id = null; | ||
if (!me.isMoreArea) { | ||
@@ -510,12 +512,13 @@ for (var n = 0; n < coordinates.length; n++) { | ||
positions.push(position); | ||
id = 0; | ||
} | ||
let pos = { | ||
positions | ||
arrayArea = { | ||
id: id, | ||
positions, | ||
} | ||
return {arrayArea}; | ||
return pos; | ||
} else { | ||
me.polygonArea.forEach((key) => { | ||
me.polygonArea.forEach((key, value) => { | ||
let latLng = []; | ||
@@ -531,2 +534,3 @@ for (var n = 0; n < key.geometry.getCoordinates().length; n++) { | ||
latLng.push(lnlt); | ||
id = value; | ||
} | ||
@@ -537,9 +541,8 @@ positions.push(latLng); | ||
const pos = { | ||
positions | ||
arrayArea = { | ||
id: id, | ||
positions, | ||
} | ||
return pos; | ||
return {arrayArea}; | ||
} | ||
}; | ||
@@ -546,0 +549,0 @@ |
@@ -5,3 +5,3 @@ | ||
"scope": "@h21-map", | ||
"version": "4.0.6", | ||
"version": "5.0.1", | ||
"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
33296
812