hei I am trying to add labels into folium.circle map but for some reasons it won t work , anyone could help, here is my map script :
import folium
# Make an empty map
m = folium.Map(location=[59.911491, 10.757933], tiles="Mapbox Bright", zoom_start=5)
# I can add marker one by one on the map
hc =list(rf_map["General HC Type"])
def color_producer(hc_type):
if hc_type =="Oil Fields":
return 'green'
elif hc_type =="Oil & Gas Fields":
return 'deeppink'
else:
return 'red'
for i,hc_map in zip(range(0,len(rf_map)),hc):
folium.Circle(
location=[rf_map.iloc[i]['Latitude Dec Deg'],rf_map.iloc[i]['Longitude Dec Deg']],
popup=rf_map.iloc[i]['Field Name'],
radius=rf_map.iloc[i]['Oil Recovery PP Factor']*300,
fill=True,
fill_color=color_producer(hc_map),
color=color_producer(hc_map),
fill_opacity=0.7,
label=rf_map.iloc[i]["Field Name"]
).add_to(m)
m.save('map.html')