Closed Rombecchi closed 4 years ago
Hi, you can do this with leaflet alone:
map.eachLayer(function(layer){
layer.removeLayer();
});
Is it possible to delete shapes within a layer and then add more shapes to that layer rather than removing that layer?
Not with Geoman. But maybe there is a Leaflet plugin that you can use https://leafletjs.com/plugins.html
Hi, aside the "RemovalMode", is it possible to programmatically delete a single or multiple layer(s)? How can I delete all shapes from my map? Thank you so much!