[openstreetmap/openstreetmap-website] fix map panning to objects when url hash is not empty but has no map location (PR #5679)
Martin Raifer
notifications at github.com
Sat Feb 15 16:06:17 UTC 2025
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/5679 at github.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/rails-dev/attachments/20250215/16a40031/attachment.htm>
More information about the rails-dev
mailing list