@h21-map/yandex-drawing-manager
Advanced tools
Comparing version 2.0.3 to 2.0.4
14
index.js
@@ -129,6 +129,14 @@ function DrawingManager(map, opts) { | ||
me.map.setCenter(me.position, 9, { | ||
checkZoomRange: true | ||
}); | ||
if (me.map.getZoom() > 9) { | ||
me.map.setCenter(me.position, me.map.getZoom(), { | ||
checkZoomRange: true | ||
}); | ||
} | ||
else { | ||
me.map.setCenter(me.position, 9, { | ||
checkZoomRange: true | ||
}); | ||
} | ||
me.position = null; | ||
@@ -135,0 +143,0 @@ |
@@ -1,6 +0,5 @@ | ||
{ | ||
"name": "@h21-map/yandex-drawing-manager", | ||
"scope":"@h21-map", | ||
"version": "2.0.3", | ||
"version": "2.0.4", | ||
"description": "A library of Yandex Map JS API", | ||
@@ -24,1 +23,2 @@ "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
24227
596