叶:添加弹出窗口到Choropleth中的多边形形状

2024-04-26 04:03:10 发布

您现在位置:Python中文网/ 问答频道 /正文

the example中,它显示您可以执行以下操作:

m = folium.Map([45, 0], zoom_start=4)
gj = folium.GeoJson(
    data={
        'type': 'Polygon',
        'coordinates': [[[27, 43], [33, 43], [33, 47], [27, 47]]]
    }
)
gj.add_child(folium.Popup('outline Popup on GeoJSON'))
gj.add_to(m)
m

我想添加一个单独的弹出式菜单,但每个形状都有一个弹出式菜单。我在一个jupyter笔记本电脑上工作,所以我真的很想要一个可以在那里运行的东西,而不是用输出来做一些事情传单.js. 在


Tags: theaddmapdataexamplegeojsontype菜单