Up to this point in my Panel journey, I’ve only instantiated callbacks connecting a state change in one component to the state of another. Now I have the need to update a PyDeck map based on the click state. I’m looking to write a function that changes the DeckGL pane based on computed results that are dependent on the (latitude, longitude) for the click location. After perusing the documentation for a bit, I’m not clear on how to go about this. Could someone point me in the right direction? As always, any suggestions are greatly appreciated!
@Marc I’m wondering if you could orient me here. Is there a way to detect a click on a DeckGL map, even if the click state does not change, so that an update can be made to the map based on the location of the click?
Hi @Marc, let me share again here the best example I can offer - which is an example that updates the map based on a change in click state. I could not figure out from the documentation how to detect clicks, even when the click state is unchanged. Based on our previous exchange, it sounds like there might not be a workaround. I’m looking to confirm if that is true. Or if not, how I can solve this problem.
Hi @Marc, Can you confirm if I’m interpreting the documentation correctly in this regard? It appears to me that at present, it is not possible to trigger a callback with a map click; instead, one can only monitor changes in click state and trigger on that. Is that correct?