Skip to content

feat: add on_click and hover_style to GeomanDrawControl #1250

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

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

lopezvoliver
Copy link
Contributor

@lopezvoliver lopezvoliver commented May 12, 2025

This PR adds an on_click method to GeomanDrawControl so that the user can define callbacks when clicking on the layers added using the GeomanDrawControl

Update: also added hover_style

@lopezvoliver lopezvoliver changed the title feat: add on_click to GeomanDrawControl feat: add on_click and hover_style to GeomanDrawControl May 14, 2025
Copy link
Contributor

@arjxn-py arjxn-py left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @lopezvoliver, this works pretty nicely :)

Screen.Recording.2025-06-03.at.19.00.52.mp4

There are just a couple of minor suggestions:

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

Successfully merging this pull request may close these issues.

2 participants