@mint-ui/map 0.3.3-beta → 0.3.4-beta
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -272,9 +272,11 @@ var GoogleMintMapController = function (_super) {
|
|
|
272
272
|
GoogleMintMapController.prototype.clearDrawable = function (drawable) {
|
|
273
273
|
if (drawable && drawable.native) {
|
|
274
274
|
if (drawable.native instanceof google.maps.Marker || drawable.native instanceof google.maps.Polygon || drawable.native instanceof google.maps.Polyline) {
|
|
275
|
+
google.maps.event.clearInstanceListeners(drawable.native);
|
|
275
276
|
drawable.native.setMap(null);
|
|
276
277
|
return true;
|
|
277
278
|
} else if (drawable.native instanceof google.maps.marker.AdvancedMarkerView) {
|
|
279
|
+
google.maps.event.clearInstanceListeners(drawable.native);
|
|
278
280
|
drawable.native.map = null;
|
|
279
281
|
return true;
|
|
280
282
|
}
|
|
@@ -277,9 +277,6 @@ var NaverMintMapController = function (_super) {
|
|
|
277
277
|
if (drawable.native instanceof naver.maps.Marker) {
|
|
278
278
|
if (this.mapProps.markerCache && this.markerPool) {
|
|
279
279
|
drawable.native.setVisible(false);
|
|
280
|
-
this.markerEvents.map(function (eName) {
|
|
281
|
-
drawable.native.clearListeners(eName);
|
|
282
|
-
});
|
|
283
280
|
(_a = this.markerPool) === null || _a === void 0 ? void 0 : _a.releasePoolItem(drawable.native);
|
|
284
281
|
} else {
|
|
285
282
|
drawable.native.setMap(null);
|
|
@@ -288,6 +285,7 @@ var NaverMintMapController = function (_super) {
|
|
|
288
285
|
drawable.native.setMap(null);
|
|
289
286
|
}
|
|
290
287
|
|
|
288
|
+
naver.maps.Event.clearInstanceListeners(drawable.native);
|
|
291
289
|
return true;
|
|
292
290
|
}
|
|
293
291
|
|
package/dist/index.es.js
CHANGED
|
@@ -674,9 +674,6 @@ var NaverMintMapController = function (_super) {
|
|
|
674
674
|
if (drawable.native instanceof naver.maps.Marker) {
|
|
675
675
|
if (this.mapProps.markerCache && this.markerPool) {
|
|
676
676
|
drawable.native.setVisible(false);
|
|
677
|
-
this.markerEvents.map(function (eName) {
|
|
678
|
-
drawable.native.clearListeners(eName);
|
|
679
|
-
});
|
|
680
677
|
(_a = this.markerPool) === null || _a === void 0 ? void 0 : _a.releasePoolItem(drawable.native);
|
|
681
678
|
} else {
|
|
682
679
|
drawable.native.setMap(null);
|
|
@@ -685,6 +682,7 @@ var NaverMintMapController = function (_super) {
|
|
|
685
682
|
drawable.native.setMap(null);
|
|
686
683
|
}
|
|
687
684
|
|
|
685
|
+
naver.maps.Event.clearInstanceListeners(drawable.native);
|
|
688
686
|
return true;
|
|
689
687
|
}
|
|
690
688
|
|
|
@@ -1178,9 +1176,11 @@ var GoogleMintMapController = function (_super) {
|
|
|
1178
1176
|
GoogleMintMapController.prototype.clearDrawable = function (drawable) {
|
|
1179
1177
|
if (drawable && drawable.native) {
|
|
1180
1178
|
if (drawable.native instanceof google.maps.Marker || drawable.native instanceof google.maps.Polygon || drawable.native instanceof google.maps.Polyline) {
|
|
1179
|
+
google.maps.event.clearInstanceListeners(drawable.native);
|
|
1181
1180
|
drawable.native.setMap(null);
|
|
1182
1181
|
return true;
|
|
1183
1182
|
} else if (drawable.native instanceof google.maps.marker.AdvancedMarkerView) {
|
|
1183
|
+
google.maps.event.clearInstanceListeners(drawable.native);
|
|
1184
1184
|
drawable.native.map = null;
|
|
1185
1185
|
return true;
|
|
1186
1186
|
}
|
package/dist/index.umd.js
CHANGED
|
@@ -679,9 +679,6 @@
|
|
|
679
679
|
if (drawable.native instanceof naver.maps.Marker) {
|
|
680
680
|
if (this.mapProps.markerCache && this.markerPool) {
|
|
681
681
|
drawable.native.setVisible(false);
|
|
682
|
-
this.markerEvents.map(function (eName) {
|
|
683
|
-
drawable.native.clearListeners(eName);
|
|
684
|
-
});
|
|
685
682
|
(_a = this.markerPool) === null || _a === void 0 ? void 0 : _a.releasePoolItem(drawable.native);
|
|
686
683
|
} else {
|
|
687
684
|
drawable.native.setMap(null);
|
|
@@ -690,6 +687,7 @@
|
|
|
690
687
|
drawable.native.setMap(null);
|
|
691
688
|
}
|
|
692
689
|
|
|
690
|
+
naver.maps.Event.clearInstanceListeners(drawable.native);
|
|
693
691
|
return true;
|
|
694
692
|
}
|
|
695
693
|
|
|
@@ -1183,9 +1181,11 @@
|
|
|
1183
1181
|
GoogleMintMapController.prototype.clearDrawable = function (drawable) {
|
|
1184
1182
|
if (drawable && drawable.native) {
|
|
1185
1183
|
if (drawable.native instanceof google.maps.Marker || drawable.native instanceof google.maps.Polygon || drawable.native instanceof google.maps.Polyline) {
|
|
1184
|
+
google.maps.event.clearInstanceListeners(drawable.native);
|
|
1186
1185
|
drawable.native.setMap(null);
|
|
1187
1186
|
return true;
|
|
1188
1187
|
} else if (drawable.native instanceof google.maps.marker.AdvancedMarkerView) {
|
|
1188
|
+
google.maps.event.clearInstanceListeners(drawable.native);
|
|
1189
1189
|
drawable.native.map = null;
|
|
1190
1190
|
return true;
|
|
1191
1191
|
}
|