我正在尝试绘制一个封闭的轮廓并用(透明或其他)颜色填充它folium
。缺少的文档没有帮助,任何想法如何做到这一点?
这是我当前的代码
m = folium.Map(location=[46, 2], zoom_start=5)
pts = [
[43.601795137863135, 1.451673278566412],
[43.61095574264419, 1.437239509310642],
[43.60999839038903, 1.45630473303456],
[43.60607351937904, 1.438762676051137],
[43.59725521090158, 1.444569790831369],
[43.6076281683173, 1.451991362348086]
]
p = folium.PolyLine(locations=pts,weight=5)
m.add_children(p)