Skip to content

Editable Layers #2133

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

Closed
yishaiSilver opened this issue Apr 15, 2025 · 2 comments
Closed

Editable Layers #2133

yishaiSilver opened this issue Apr 15, 2025 · 2 comments

Comments

@yishaiSilver
Copy link

Is your feature request related to a problem? Please describe.
It doesn't seem possible to edit pre-existing configurations. If a user has saved some features and then wants to edit them in a new session, it's not possible even if the GeoJson has been saved.

Describe the solution you'd like
I'd love if pre-loaded layers could be managed by the Draw plugin

Describe alternatives you've considered
I may have to dig into rebuilding my project like the following, but I'd really prefer not to :
https://leaflet.github.io/Leaflet.draw/docs/examples/edithandlers.html

@hansthen
Copy link
Collaborator

You mean you want something like this?

m = folium.Map(location=[39.949610, -75.150282], zoom_start=5, png_enabled=True)
items = folium.FeatureGroup()
marker = folium.Marker(location=[38, -83]).add_to(items)
items.add_to(m)

Draw(export=False, feature_group=items, show_geometry_on_click=False).add_to(m)

@yishaiSilver
Copy link
Author

That's exactly what I was looking for! Thanks for your help!

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