Reset Click Data when clicking on map


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


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


Perfect workaround Konsti - Thx a lot !