[openstreetmap/openstreetmap-website] Embedded map refresh shows whole world in Chrome (#2531)
notifications at github.com
Wed Feb 12 09:30:58 UTC 2020
We're using an embedded map in an IFrame. Whenever we refresh the page in Chrome (latest vanilla GA) we get the whole world rather than the normal area we get. This works fine in Firefox (and reports from others that IE is good too). There is chat about this in: https://forum.openstreetmap.org/viewtopic.php?pid=774298#p774298
I've been told this wasn't a problem in earlier versions of Chome, so guessing this might be related to recent cross-origin or security changes they've made.
You can see an example of it at https://www.fishersgreensc.org.uk/ (bottom LHS). The iframe it's using is:
`<iframe src="https://www.openstreetmap.org/export/embed.html?bbox=-0.014516115188598635%2C51.721292696505174%2C-0.002521276473999024%2C51.72513413988513&layer=mapnik" frameborder="0" marginwidth="0" marginheight="0" scrolling="no" width="200" height="300" style="border: 1px solid black;"></iframe>`
I've tried relaxing various iframe security features, but with no luck.
Please let me know if you need any more information or an recommend any changes to the frame.
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the rails-dev