You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
then is added to the map this.map.addLayer(this.markerCluster);.
Adding markers to the marker cluster works like a charm (this.markerCluster.addLayers(this.markerLayers);) but the problem appears when I'm trying to delete them because this.markerCluster.clearLayers(); does not remove the layers from the map and I have to do it manually:
I'm using
"leaflet.markercluster": "^1.5.0"
into an Angular app.The marker cluster is created as follow:
then is added to the map
this.map.addLayer(this.markerCluster);
.Adding markers to the marker cluster works like a charm (
this.markerCluster.addLayers(this.markerLayers);
) but the problem appears when I'm trying to delete them becausethis.markerCluster.clearLayers();
does not remove the layers from the map and I have to do it manually:Isn't expected from
clearLayers
method to remove the layers also from the map?The text was updated successfully, but these errors were encountered: