Reset Click Data when clicking on map

#1

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)?

#2

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

#3

@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

2 Likes
#4

Perfect workaround Konsti - Thx a lot !