downloading geojson file into folium in jupyter

2019-07-09 11:11发布

问题:

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)