0

All,

The geojsonio package is not rendering simple JSON files on geojson.io as it should be. I get empty map as shown below

enter image description here Here is the Python code I use to render the geojson file.

import geopandas as gpd
states = gpd.read_file('us-states.json') # available at https://github.com/PublicaMundi/MappingAPI/tree/master/data/geojson 
print(states.head())

states_ = states.to_json()
print(states_)

import geojsonio
geojsonio.display(states_)

However, I can render it by opening the json file via open tap https://geojson.io/#map=2/0/20 as shown below enter image description here

Any ideas. Thanks

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.