我想要一张欧洲地图(作为 json 文件,这样我就可以使用 geojson)将其作为图层放置在 Folium 地图上,这样我就可以将我的数据集嵌入到其中,以显示欧洲哪个国家的酒精含量最高。我在从 GitHub 获取 json 文件以在 jyputer 中打开时遇到问题
This is what I have so far and i have the file of europe country in geojson from github https://github.com/Leaflet/Leaflet.VectorGrid/blob/master/docs/eu-countries.geo.json https://github.com/Leaflet/Leaflet.VectorGrid/blob/master/docs/eu-countries.geo.json
您必须下载该文件。现在您将能够添加图层:
# geo_path is the path to your geojson file
map1.choropleth(geo_path=geo_path)
display(map1)
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)