We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b9d339c commit ccde819Copy full SHA for ccde819
src/map-view.android.ts
@@ -381,6 +381,8 @@ export class MapView extends MapViewBase {
381
}
382
383
addMarker(...markers: Marker[]) {
384
+ if(!this.gMap)
385
+ return;
386
markers.forEach(marker => {
387
marker.android = this.gMap.addMarker(marker.android);
388
this._markers.push(marker);
@@ -396,6 +398,8 @@ export class MapView extends MapViewBase {
396
398
397
399
400
removeAllMarkers() {
401
+ if(!this._markers || !this.markers.length)
402
403
this._markers.forEach(marker => {
404
this._unloadInfoWindowContent(marker);
405
marker.android.remove();
0 commit comments