I am trying to create an interactive map using python folium package. The feature I am looking for is, for a given list of locations, there are icons on the map, and a draggable legend (so that one can reposition the legend by dragging it using the mouse) for each of the locations, and one can click on one of the items in the legend to zoom into the corresponding location on the map.
Could you show me a minimum script (say for two locations, New York and Boston) so that I can get started?
Many thanks! Sam
I am not familiar with the API, and I searched over the internet, but did not get useful information to get started. So I am asking if someone can give a minimum example to give me a jump start.
I have so far the following scripts which give me the icons and legend, but not the draggable function nor the clickable legend item zooming-in function.