[openstreetmap/openstreetmap-website] Add `autoPan`-ing for draggin markers on the diary adding page (PR #7188)
Frank Elsinga
notifications at github.com
Sat Jun 27 15:12:54 UTC 2026
### Description
This PR breaks out the `autoPan` functionality that markers have on the note addition page and adds it to the diary adding page.
(with the different maplibre core, but still same logic)
The hidden motivation is that this is another 40 lines shaved off the big 2.5k line PR that I can ship independently.
### How has this been tested?
<img width="1920" height="1080" alt="Recording 2026-06-27 at 17 08 23" src="https://github.com/user-attachments/assets/7710321e-b715-49d9-a22d-16d06dbdbadd" />
You can view, comment on, or merge this pull request online at:
https://github.com/openstreetmap/openstreetmap-website/pull/7188
-- Commit Summary --
* add autoPan-ing
-- File Changes --
M app/assets/javascripts/diary_entry.js (2)
M app/assets/javascripts/maplibre/dom_util.js (40)
-- Patch Links --
https://github.com/openstreetmap/openstreetmap-website/pull/7188.patch
https://github.com/openstreetmap/openstreetmap-website/pull/7188.diff
--
Reply to this email directly or view it on GitHub:
https://github.com/openstreetmap/openstreetmap-website/pull/7188
You are receiving this because you are subscribed to this thread.
Message ID: <openstreetmap/openstreetmap-website/pull/7188 at github.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/rails-dev/attachments/20260627/0a24d69c/attachment.htm>
More information about the rails-dev
mailing list