Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Leaflet Draw - Remove markers one by one without save confirm #1032

Open
FranGhe opened this issue Dec 4, 2021 · 1 comment
Open

Leaflet Draw - Remove markers one by one without save confirm #1032

FranGhe opened this issue Dec 4, 2021 · 1 comment

Comments

@FranGhe
Copy link

FranGhe commented Dec 4, 2021

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?

@askerakbar
Copy link

Hi, did you find any solutin to this?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants