[openstreetmap/openstreetmap-website] Remove unnecessary map bounds adjustment on exiting changeset history (PR #6514)
袁立诚
notifications at github.com
Mon Nov 10 17:33:10 UTC 2025
See #6509 .
### Description
These lines were causing the map to zoom out whenever the changeset history panel was closed. After reviewing their purpose, it seems they are not necessary: once we exit the history view, there’s no need to adjust the map to fit the bounds of the history changesets. Removing them fixes the zooming issue and does not affect any other map behavior.
### Screenshots
old version:
https://github.com/user-attachments/assets/16283fd0-7abb-4b93-ae29-4b356b148b23
new version:
https://github.com/user-attachments/assets/58acd6bf-7c2d-42bc-bba1-c860a1e38bfe
You can view, comment on, or merge this pull request online at:
https://github.com/openstreetmap/openstreetmap-website/pull/6514
-- Commit Summary --
* No need to fixBounds when page is not /history
-- File Changes --
M app/assets/javascripts/index/history.js (4)
-- Patch Links --
https://github.com/openstreetmap/openstreetmap-website/pull/6514.patch
https://github.com/openstreetmap/openstreetmap-website/pull/6514.diff
--
Reply to this email directly or view it on GitHub:
https://github.com/openstreetmap/openstreetmap-website/pull/6514
You are receiving this because you are subscribed to this thread.
Message ID: <openstreetmap/openstreetmap-website/pull/6514 at github.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/rails-dev/attachments/20251110/0b60b937/attachment.htm>
More information about the rails-dev
mailing list