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/5...@github.com>
_______________________________________________
rails-dev mailing list
rails-dev@openstreetmap.org
https://lists.openstreetmap.org/listinfo/rails-dev

Reply via email to