-
Notifications
You must be signed in to change notification settings - Fork 25
Open
Description
I'm trying to embed a map in my Jupyter notebook. When I try to run the geojsonio.embed(geojson) function, the browser window is redirected to the geojson.io site. However when I embed any other site in an Iframe, it works fine.
This try's to redirect me.
import geojsonio, json
geojson = { "type": "FeatureCollection",
"features": [
{ "type": "Feature",
"geometry": {
"type": "Polygon",
"coordinates": [
[ [100.0, 0.0], [101.0, 0.0], [101.0, 1.0],
[100.0, 1.0], [100.0, 0.0] ]
]
},
"properties": {
"prop0": "value0",
}
}
]
}
#redirects me to a geojsonio site
url = geojsonio.embed(json.dumps(geojson))Using another URL the iframe functionality works as expected.
from IPython.display import IFrame
url0 = 'http://donkeycar.com'
IFrame(url, width='100%', height=500) Metadata
Metadata
Assignees
Labels
No labels