[openstreetmap/openstreetmap-website] iD: listen to URL hash changes (PR #5394)

Martin Raifer notifications at github.com
Wed Dec 11 14:05:44 UTC 2024


When the `map` hash parameter is changed (and was not not triggered by map interaction from inside iD itself): pan to the new location.

This mirrors the behaviour when manually editing the `map` hash parameter on osm.org outside of iD.

This also fixes https://github.com/openstreetmap/iD/issues/10592 (error in js console when iD is opened outside of an iframe by directly navigating to osm.org/id).

You can view, comment on, or merge this pull request online at:

  https://github.com/openstreetmap/openstreetmap-website/pull/5394

-- Commit Summary --

  * iD: listen to  manual hashchanges from iframe parent

-- File Changes --

    M app/assets/javascripts/id.js (28)

-- Patch Links --

https://github.com/openstreetmap/openstreetmap-website/pull/5394.patch
https://github.com/openstreetmap/openstreetmap-website/pull/5394.diff

-- 
Reply to this email directly or view it on GitHub:
https://github.com/openstreetmap/openstreetmap-website/pull/5394
You are receiving this because you are subscribed to this thread.

Message ID: <openstreetmap/openstreetmap-website/pull/5394 at github.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/rails-dev/attachments/20241211/ed6fbb5f/attachment.htm>


More information about the rails-dev mailing list