mapping-component-package-jp 0.0.9 → 0.0.11
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.
package/package.json
CHANGED
|
@@ -221,8 +221,6 @@ export class MapOverlayManager {
|
|
|
221
221
|
|
|
222
222
|
function AdvancedMarker(locations, icon, markerType = 'field', fitBounds) {
|
|
223
223
|
|
|
224
|
-
fmarkers_clear();
|
|
225
|
-
|
|
226
224
|
if (map.getMapCapabilities().isAdvancedMarkersAvailable && locations && locations.length > 0) {
|
|
227
225
|
var mapBounds = new google.maps.LatLngBounds();
|
|
228
226
|
locations.forEach(function(v) {
|
|
@@ -513,12 +511,22 @@ export class MapOverlayManager {
|
|
|
513
511
|
|
|
514
512
|
function fmarkers_clear() {
|
|
515
513
|
fmarkers.forEach(function (fm) {
|
|
516
|
-
fm.setMap(null);
|
|
514
|
+
fm.setMap(null); //for Marker
|
|
515
|
+
fm.map = null; //for AdvancedMarkerElement
|
|
517
516
|
fm = null;
|
|
518
517
|
});
|
|
519
518
|
fmarkers = [];
|
|
520
519
|
}
|
|
521
520
|
|
|
521
|
+
_this.fmarkers_clear = function() {
|
|
522
|
+
fmarkers.forEach(function (fm) {
|
|
523
|
+
fm.setMap(null); //for Marker
|
|
524
|
+
fm.map = null; //for AdvancedMarkerElement
|
|
525
|
+
fm = null;
|
|
526
|
+
});
|
|
527
|
+
fmarkers = [];
|
|
528
|
+
};
|
|
529
|
+
|
|
522
530
|
function polygonListeners_clear() {
|
|
523
531
|
polygonListeners.forEach(function (polygonListener) {
|
|
524
532
|
google.maps.event.removeListener(polygonListener);
|
|
@@ -545,7 +553,7 @@ export class MapOverlayManager {
|
|
|
545
553
|
google.maps.event.removeListener(mapListener);
|
|
546
554
|
});
|
|
547
555
|
mapListeners = [];
|
|
548
|
-
}
|
|
556
|
+
};
|
|
549
557
|
|
|
550
558
|
function polyLabels_clear() {
|
|
551
559
|
polyLabels.forEach(function (pl) {
|