@h21-map/google-drawing-manager
Advanced tools
Comparing version 41.1.0 to 45.1.0
11
index.js
@@ -667,9 +667,10 @@ let drawModeMarker = "marker"; | ||
me._vertexMarker.setCursor('col-resize'); | ||
me._vertexMarkerAddEventListener(); | ||
me._centerMarker && me._vertexMarkerAddEventListener(); | ||
}, | ||
DrawingManager.prototype._vertexMarkerAddEventListener = function () { | ||
let me = this; | ||
const me = this; | ||
me.isMaxDistance = false; | ||
google.maps.event.addListener(me._vertexMarker, 'drag', (event) => { | ||
if (!me._centerMarker) { return; } | ||
const distance = me.getDistanceTo(me._centerMarker.getPosition(), event.latLng); | ||
@@ -920,6 +921,6 @@ if (distance >= me.circleOptions.maxRadius) { | ||
DrawingManager.prototype._getInfo = function () { | ||
let me = this; | ||
const me = this; | ||
const position = { | ||
latitude: me._centerMarker.getPosition().lat(), | ||
longitude: me._centerMarker.getPosition().lng() | ||
latitude: me._centerMarker && me._centerMarker.getPosition().lat() || me._circle.getCenter.lat(), | ||
longitude: me._centerMarker && me._centerMarker.getPosition().lng() || me._circle.getCenter.lng() | ||
} | ||
@@ -926,0 +927,0 @@ const info = { |
{ | ||
"name": "@h21-map/google-drawing-manager", | ||
"scope": "@h21-map", | ||
"version": "41.1.0", | ||
"version": "45.1.0", | ||
"description": "A library of Google Map JS API", | ||
@@ -6,0 +6,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
33576
800