@h21-map/google-drawing-manager
Advanced tools
Comparing version 23.1.0 to 24.1.0
16
index.js
@@ -54,2 +54,3 @@ let drawModeMarker = "marker"; | ||
me._isRedrawEvent = opts.isRedrawEvent; | ||
me.radius = opts.circleOptions.radius; | ||
@@ -59,6 +60,2 @@ me.markerOptions && me.setPosition(me.markerOptions.markerLatitude, me.markerOptions.markerLongitude); | ||
if (me.circleOptions) { | ||
me.circleOptions.radius = me.circleOptions.radius; | ||
} | ||
if (me.areaOptions) { | ||
@@ -511,7 +508,7 @@ me.areaCoordinates = me.areaOptions.areaCoordinates; | ||
me._centerMarker.setMap(me.map); | ||
if (!enabledCircle) { google.maps.event.trigger(me, 'draw:marker_create', me._getPosition()); } | ||
me.markerOptions.fitBounds && !enabledCircle && me._fitBoundsMarker(); | ||
me.markerOptions.isMarkerAnimate && !enabledCircle && me.isAnimateMarker(true); | ||
if (!enabledCircle) { google.maps.event.trigger(me, 'draw:marker_create', me._getPosition()); } | ||
if (me._isRedrawEvent && !enabledCircle) { me._enableDraw = true; } | ||
@@ -576,3 +573,3 @@ | ||
center: me._centerMarker.getPosition(), | ||
radius: Math.floor(me.radius), | ||
radius: me.radius, | ||
optimized: true, | ||
@@ -583,2 +580,3 @@ }); | ||
me._circle.setMap(me.map); | ||
google.maps.event.trigger(me, 'draw:circle_create', this._getInfo()); | ||
me._circle.bindTo('center', me._centerMarker, 'position'); | ||
@@ -594,3 +592,3 @@ | ||
me._centerMarkerAddEventListener(); | ||
google.maps.event.trigger(me, 'draw:circle_create', this._getInfo()); | ||
if (me._isRedrawEvent) { me._enableDraw = true; } | ||
@@ -970,2 +968,2 @@ | ||
module.exports = { default: DrawingManager, DrawingManager: DrawingManager }; | ||
} | ||
} |
{ | ||
"name": "@h21-map/google-drawing-manager", | ||
"scope": "@h21-map", | ||
"version": "23.1.0", | ||
"version": "24.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
33724
802