我想使用circlemarker在我的项目上显示地理地图。这是我写的:
states = folium.map.FeatureGroup()
i=0
for lat, lng, in zip(dataframe_filtered.location_latitude, dataframe_filtered.location_longitude):
states.add_child(
folium.features.CircleMarker(
[lat, lng],
radius=5, # define how big you want the circle markers to be
color='yellow',
fill=True,
fill_color='blue',
fill_opacity=0.6,
)
)
i+=1
但是,我遇到一个错误:
“模块'folium.features'没有属性'CircleMarker'”
这完全有可能是由于使用了旧版的叶草引起的。尝试更新您的模块下载,并让我们知道它是否有效。