Here is the code:
for lat,lon,name,elev in zip(df['LAT'],df['LON'],df['NAME'],df['ELEV']):
fg.add_child(folium.Marker(location=
[lat,lon],popup=name,icon=folium.Icon(color=color_ori(elev))))
I am creating a map for volcanoes
in the USA, and I want to show a marker with their names in the popup. I can't do that with the code above, but when I use popup=str(elev)+"m"
, it works fine. How do I include the names from my CSV
file into a popup ?