Add marker on map using mouse click


Is it possible for the user to put a marker on the scattermap with a mouse click?
I would like to do a radius selection based on user input position via mouse click.

I’ve been googling…and could not find anything.

Thanks in advance.


Basically I have a dashboard where the user can select points on the map based on a radius from the center. The radius can be selected using a slider.

Now I need the user to be able to select a new center on the map. Any help or ideas will be really appreciated.

You may be able to use the clickData event on your graph to pass a new center on your plot. You can find out how in the interactive part of the user’s guide: