Fix for #865. Unfortunately, the code is slightly different between OSM objects 
(nodes/ways/relations), notes and changesets. I tried to make it somewhat more 
coherent by always using the `map.addObject({}, callback)` approach to zoom to 
the location if the `hash` parameters had no location information.
You can view, comment on, or merge this pull request online at:

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

-- Commit Summary --

  * fix map panning to objects when url hash is not empty but has no map 
location, fixes #865

-- File Changes --

    M app/assets/javascripts/index.js (3)
    M app/assets/javascripts/index/changeset.js (3)
    M app/assets/javascripts/index/note.js (28)

-- Patch Links --

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

-- 
Reply to this email directly or view it on GitHub:
https://github.com/openstreetmap/openstreetmap-website/pull/5679
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