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

can't have delete without edit #1061

Open
forgotten-map opened this issue Mar 23, 2023 · 1 comment
Open

can't have delete without edit #1061

forgotten-map opened this issue Mar 23, 2023 · 1 comment

Comments

@forgotten-map
Copy link

I have a use case where I need to be able to delete layers, but not edit them.
It would be nice to have a way to specify the options so that only the delete tool is shown, without the edit button.

@forgotten-map
Copy link
Author

actually I can achieve that with css

.leaflet-draw-edit-edit{
  display: none;
}

It would still be nice to be able to specify that in the control options, but at least there's a way.

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

1 participant