@h21-map/google-drawing-manager
Advanced tools
Comparing version 16.1.0 to 17.1.0
11
index.js
@@ -35,6 +35,2 @@ let drawModeMarker = "marker"; | ||
google.maps.event.addListener(me.map, 'idle', () => { | ||
google.maps.event.trigger(me, 'draw:zoom_map', me.map.getZoom()); | ||
}); | ||
}; | ||
@@ -52,3 +48,4 @@ | ||
DrawingManager.prototype.setDrawingMode = function (drawingType, opts) { | ||
let me = this; | ||
if (!google || !google.maps) { return; } | ||
const me = this; | ||
me.markerOptions = opts.markerOptions || {}; | ||
@@ -147,3 +144,3 @@ me.circleOptions = opts.circleOptions || {}; | ||
: me.map.setZoom(11); | ||
me.map.setCenter(me._centerMarker.getPosition()); | ||
me.map.setCenter(me._centerMarker.getPosition()); | ||
} | ||
@@ -512,3 +509,3 @@ | ||
me.markerOptions.fitBounds && me._fitBoundsMarker(); | ||
me.markerOptions.fitBounds && !enabledCircle && me._fitBoundsMarker(); | ||
@@ -515,0 +512,0 @@ if (!enabledCircle) { google.maps.event.trigger(me, 'draw:marker_create', me._getPosition()); } |
{ | ||
"name": "@h21-map/google-drawing-manager", | ||
"scope": "@h21-map", | ||
"version": "16.1.0", | ||
"version": "17.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
33315
797