使用jupyter Notebook / python3
我想使用带标记的折线,但不起作用
map = folium.Map(location=[37.4601908, 126.4406957])
for index,lat in enumerate(place_lat):
folium.Marker([lat,
place_lng[index]],
popup=('patient3 \n 74contacts'),
icon = folium.Icon(color='green',icon='plus')).add_to(map)
folium.Polyline(color='red').add_to(map)
map
我以为折线在大叶中
但是错误说
AttributeError: module 'folium' has no attribute 'Polyline'
如何使用折线?
从docs,您应该使用PolyLine
。