how can i get the polygon? #2165
Answered
by
giswqs
B-Snowflake
asked this question in
Q&A
-
trying to get the polygon when click the button, but always get None either draw or not.
how can i fix the code? |
Beta Was this translation helpful? Give feedback.
Answered by
giswqs
Nov 7, 2024
Replies: 1 comment 5 replies
-
You need to use the https://github.com/opengeos/solara-maxar/tree/main https://github.com/opengeos/solara-maxar/blob/main/pages/01_morocco.py#L213 |
Beta Was this translation helpful? Give feedback.
5 replies
Answer selected by
giswqs
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
You need to use the
m.on_interaction(handle_click)
to observe mourse clicking events. See this example:https://github.com/opengeos/solara-maxar/tree/main
https://github.com/opengeos/solara-maxar/blob/main/pages/01_morocco.py#L213