mapping-component-package-jp 0.0.9 → 0.0.10
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) {
|
|
@@ -519,6 +517,14 @@ export class MapOverlayManager {
|
|
|
519
517
|
fmarkers = [];
|
|
520
518
|
}
|
|
521
519
|
|
|
520
|
+
_this.fmarkers_clear = function() {
|
|
521
|
+
fmarkers.forEach(function (fm) {
|
|
522
|
+
fm.setMap(null);
|
|
523
|
+
fm = null;
|
|
524
|
+
});
|
|
525
|
+
fmarkers = [];
|
|
526
|
+
};
|
|
527
|
+
|
|
522
528
|
function polygonListeners_clear() {
|
|
523
529
|
polygonListeners.forEach(function (polygonListener) {
|
|
524
530
|
google.maps.event.removeListener(polygonListener);
|
|
@@ -545,7 +551,7 @@ export class MapOverlayManager {
|
|
|
545
551
|
google.maps.event.removeListener(mapListener);
|
|
546
552
|
});
|
|
547
553
|
mapListeners = [];
|
|
548
|
-
}
|
|
554
|
+
};
|
|
549
555
|
|
|
550
556
|
function polyLabels_clear() {
|
|
551
557
|
polyLabels.forEach(function (pl) {
|