downloading geojson file into folium in jupyter

浪子不回头ぞ 提交于 2019-12-12 18:02:27

问题


I want a map of Europe (as json file, so i can work with geojson) to place it on Folium map as layers so I am able to embed my data set onto it to show which country in Europe has the highest alcohol serving. I am having problems with getting the json file from GitHub to open in 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


回答1:


You will have to download that file. Now you will be able to add the layer:

# geo_path is the path to your geojson file
map1.choropleth(geo_path=geo_path)
display(map1)


来源:https://stackoverflow.com/questions/44297213/downloading-geojson-file-into-folium-in-jupyter

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!