Get ID of a MVTLayer-feature from coordinates (using pydeck and panel). #8430
Unanswered
bertcoerver
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello,
I'm want access the ID of a feature in a MVTLayer (or even better would be all of its properties) which is inside a Panel pane. Here is working example (or open it in Colab):
When I hover over the map I can see the ID in the tooltip. When I click the map, there is a callback function (called
on_map_click
) in which I have access to the coordinates of the click, and the Deck.So, given the variable
deck
(which contains the layer) and a coordinate, can I retrieve the corresponding ID (or properties)?Thanks for any help!
Bert
Beta Was this translation helpful? Give feedback.
All reactions