@h21-map/google-drawing-manager
Advanced tools
Comparing version 6.2.0 to 6.5.0
15
index.js
@@ -221,2 +221,3 @@ | ||
google.maps.event.trigger(me, 'draw:area_create', me._convertCoordinates(me.vertexCount)); | ||
me.map.setOptions({ draggableCursor: me.map.get('draggableCursor')}); | ||
if (me.areaOptions.fitBounds) { | ||
@@ -377,6 +378,7 @@ me._fitBoundsArea(); | ||
let positions = []; | ||
let geometry = [] | ||
let geometry = []; | ||
let arrayArea = {}; | ||
let id = null; | ||
if (!me.isMoreArea) { | ||
let latLng = []; | ||
for (var n = 0; n < me._area.getPath().getArray().length; n++) { | ||
@@ -388,6 +390,8 @@ let item = me._area.getPath().getArray()[n]; | ||
} | ||
positions.push(position); | ||
geometry.push(latLng); | ||
latLng.push(position); | ||
geometry=positions; | ||
id = 0; | ||
} | ||
positions.push(latLng); | ||
geometry=positions[0]; | ||
@@ -416,3 +420,3 @@ arrayArea = { | ||
if (id === cur) { | ||
geometry.push(latLng); | ||
geometry = positions[cur-1]; | ||
} | ||
@@ -480,3 +484,3 @@ } | ||
if (enabledCircle) { | ||
me._bindCircle() | ||
me._bindCircle(); | ||
} | ||
@@ -766,2 +770,3 @@ me.position = null; | ||
DrawingManager.prototype._centerMarkerAddEventListener = function () { | ||
console.log('_centerMarkerAddEventListener') | ||
let me = this; | ||
@@ -768,0 +773,0 @@ google.maps.event.addListener(me._centerMarker, 'drag', function (event) { |
{ | ||
"name": "@h21-map/google-drawing-manager", | ||
"scope": "@h21-map", | ||
"version": "6.2.0", | ||
"version": "6.5.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
31023
754