[openstreetmap/openstreetmap-website] Render changesets on both sides of the antimeridian (PR #5903)
Anton Khorev
notifications at github.com
Mon Apr 7 13:00:15 UTC 2025
Continues #5473 by fixing the rendering.
When anything is added to the map, its longitude could be as well (the original longitude) + n * 360. n is an integer and usually it's 0 but that doesn't work when looking at the map near the antimeridian. Here I'm picking such n for each changeset bbox that it's going to be at the closest location to the map view center.

You can view, comment on, or merge this pull request online at:
https://github.com/openstreetmap/openstreetmap-website/pull/5903
-- Commit Summary --
* Support unwrapped bbox values in changeset history queries
* Add history changesets layer module
* Rename changesets layer constant
* Rename map listeners on history page
* Render changesets at locations closest to map view center
-- File Changes --
A app/assets/javascripts/index/history-changesets-layer.js (76)
M app/assets/javascripts/index/history.js (86)
M app/controllers/changesets_controller.rb (32)
M test/controllers/changesets_controller_test.rb (104)
M test/system/history_test.rb (28)
-- Patch Links --
https://github.com/openstreetmap/openstreetmap-website/pull/5903.patch
https://github.com/openstreetmap/openstreetmap-website/pull/5903.diff
--
Reply to this email directly or view it on GitHub:
https://github.com/openstreetmap/openstreetmap-website/pull/5903
You are receiving this because you are subscribed to this thread.
Message ID: <openstreetmap/openstreetmap-website/pull/5903 at github.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/rails-dev/attachments/20250407/488aaad8/attachment.htm>
More information about the rails-dev
mailing list