如何使用“折线”

问题描述 投票:0回答:1

使用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'

如何使用折线?

python python-3.x jupyter-notebook polyline folium
1个回答
0
投票

docs,您应该使用PolyLine

© www.soinside.com 2019 - 2024. All rights reserved.