mapping-component-package-jp 0.0.8 → 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
|
@@ -220,6 +220,7 @@ export class MapOverlayManager {
|
|
|
220
220
|
}
|
|
221
221
|
|
|
222
222
|
function AdvancedMarker(locations, icon, markerType = 'field', fitBounds) {
|
|
223
|
+
|
|
223
224
|
if (map.getMapCapabilities().isAdvancedMarkersAvailable && locations && locations.length > 0) {
|
|
224
225
|
var mapBounds = new google.maps.LatLngBounds();
|
|
225
226
|
locations.forEach(function(v) {
|
|
@@ -516,6 +517,14 @@ export class MapOverlayManager {
|
|
|
516
517
|
fmarkers = [];
|
|
517
518
|
}
|
|
518
519
|
|
|
520
|
+
_this.fmarkers_clear = function() {
|
|
521
|
+
fmarkers.forEach(function (fm) {
|
|
522
|
+
fm.setMap(null);
|
|
523
|
+
fm = null;
|
|
524
|
+
});
|
|
525
|
+
fmarkers = [];
|
|
526
|
+
};
|
|
527
|
+
|
|
519
528
|
function polygonListeners_clear() {
|
|
520
529
|
polygonListeners.forEach(function (polygonListener) {
|
|
521
530
|
google.maps.event.removeListener(polygonListener);
|
|
@@ -542,7 +551,7 @@ export class MapOverlayManager {
|
|
|
542
551
|
google.maps.event.removeListener(mapListener);
|
|
543
552
|
});
|
|
544
553
|
mapListeners = [];
|
|
545
|
-
}
|
|
554
|
+
};
|
|
546
555
|
|
|
547
556
|
function polyLabels_clear() {
|
|
548
557
|
polyLabels.forEach(function (pl) {
|