I display the clickdata of a clicked Point on a scatter map box. Is there a way to reset the clickdata when clicking somewhere on the map (but not a point)?
1 Like
Hey @konsti_papa, I am facing the same issue. Did you find a solutions? I have been looking for such things as ClickData.Timestamp or so, did not find anything
@qdumont yes i found a Solution!
Wrap the map in a div and then just an simple callback like this
@app.callback(Output(‘map’, ‘clickData’),
[Input(‘map-Container’, ‘n_clicks’)])
def reset_clickData(n_clicks):
return None
4 Likes
Perfect workaround Konsti - Thx a lot !
Can someone elaborate this a bit better?
I can’t make it work with the plot wrapped in a div.
My plot’s clickData is always none in this way.
Thanks
I created the account just to thank you!!
This solved a big problem for me!!
Thank you!!!
1 Like
Yeah same problem can someone help around