[openstreetmap/openstreetmap-website] Embedded map refresh shows whole world in Chrome (#2531)
notifications at github.com
Wed Mar 17 13:05:12 UTC 2021
Because my websites are responsive (Flexbox CSS), I am only using the iframe's 'src' attribute with URL obtained via OpenStreetMap's 'Share' button. However I do not think this is affecting the issue.
I too think the issue may be caused by a timing or "race condition". This has led me to trying this code which I find shows the correct map:
<iframe id="map1" class="Box_Map" src=""></iframe>
_Note: my class "Box_Map" styles the iframe instead of attributes from the 'Share' button embed code._
If this is a timing issue, I cannot guarantee this solution will work on a very fast PC. An alternative approach would be to put the script in another file and embed it using the HTML '[defer](https://www.w3schools.com/tags/att_script_defer.asp)' attribute.
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