I have a map with draw controls to create, edit and remove only markers.
All works fine, but I would like to remove the marker just with one click... without save confirm.
I haven't found any posts explaining how I can do this ... or my search is incorrect. only this code
L.EditToolbar.Delete.include({
enable: function () {
this.options.featureGroup.clearLayers();
}
});
but this remove all markers... I want remove the markers one by one without confirm.
I would like:
click on trash icon, than the marker that will be removed...
click on trash icon, than the marker that will be removed...
... ecc
I have a map with draw controls to create, edit and remove only markers.
All works fine, but I would like to remove the marker just with one click... without save confirm.
I haven't found any posts explaining how I can do this ... or my search is incorrect. only this code
L.EditToolbar.Delete.include({ enable: function () { this.options.featureGroup.clearLayers(); } }); but this remove all markers... I want remove the markers one by one without confirm.
I would like: click on trash icon, than the marker that will be removed... click on trash icon, than the marker that will be removed... ... ecc
Is it possible?