Marker selection in a map

Hello, is it possible to create a map with markers that change somehow to indicate that they have been selected? I want to create a map with, for instance, red dots indicating some cities, and as the user selects them in the map they become blue, and a list of selected cities becomes available.

I came across the dynamic_updates:

but I cannot follow the exemple. Pycharm does not recognize bounds in:

fg.add_child(folium.features.GeoJson(bounds))

and I dont have STATE_DATA, it would be good to make the entire code available in a git repository

problem solved, sorry community, I am very new to coding, I did a fork to github, I didnt know that I could do that and found the code for the page and the csv file for the states. it is running fine on my side and from here I know what to do.

1 Like

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.