Open wroscoe opened 7 years ago
I have the same problem.
I can reproduce this. After trying to fix it, I think it's something with geojson.io and there might not be anything we can do from the Python side to get it to embed properly.
Creating a very simple webpage with geojson.io in an iframe demonstrates this.
<!DOCTYPE html>
<html>
<head>
<title>Test IFrame</title>
</head>
<body>
<iframe src="http://geojson.io" height="400" width="100%"></iframe>
Some content here
</body>
</html>
After digging into this a bit, this is the relevant commit to geojson.io which disables iframes: https://github.com/mapbox/geojson.io/commit/1a2f825047a78519b86941292a29b551314944d8
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.
Using another URL the iframe functionality works as expected.