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

Get selected object from GeomanDrawControl #1239

Open
giswqs opened this issue Nov 14, 2024 · 1 comment
Open

Get selected object from GeomanDrawControl #1239

giswqs opened this issue Nov 14, 2024 · 1 comment

Comments

@giswqs
Copy link
Contributor

giswqs commented Nov 14, 2024

The geoman javascript demo allows selecting and highlighting draw features. Is it possible to do the same thing using the ipyleaflet GeomanDrawControl? How do we access the selected object, similar to the DrawControl.last_draw_feature attribute? The goal is to select draw features and add/edit their properties programtically.

https://geoman.io/demo/leaflet
Peek 2024-11-13 22-30

@giswqs
Copy link
Contributor Author

giswqs commented Nov 14, 2024

I am looking for python counterpart of the JS Draw.getActiveShape()

https://geoman.io/docs/leaflet/modes/draw-mode
image

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