[openstreetmap/openstreetmap-website] Antimeridian map data display (PR #6320)
mmd
notifications at github.com
Wed Aug 13 18:38:33 UTC 2025
This PR enables map data display across the antimeridian. It splits up the /map request into two requests if needed.
Depending on the current map center, cloned nodes and ways with +/- 360 offset are added to the list of features. This is described in more here: https://stackoverflow.com/a/54709437/3501889
Before:
<img width="589" height="353" alt="image" src="https://github.com/user-attachments/assets/70b5b9fb-7310-48cb-be56-2d1027de6f71" />
After:
<img width="303" height="298" alt="image" src="https://github.com/user-attachments/assets/02706be6-742a-4453-bbd7-eacbac7c112c" />
<img width="303" height="298" alt="image" src="https://github.com/user-attachments/assets/010ed8ba-8fd4-4276-bec6-a22a6042f315" />
You can view, comment on, or merge this pull request online at:
https://github.com/openstreetmap/openstreetmap-website/pull/6320
-- Commit Summary --
* Antimeridian map data display
-- File Changes --
M app/assets/javascripts/index/layers/data.js (103)
-- Patch Links --
https://github.com/openstreetmap/openstreetmap-website/pull/6320.patch
https://github.com/openstreetmap/openstreetmap-website/pull/6320.diff
--
Reply to this email directly or view it on GitHub:
https://github.com/openstreetmap/openstreetmap-website/pull/6320
You are receiving this because you are subscribed to this thread.
Message ID: <openstreetmap/openstreetmap-website/pull/6320 at github.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/rails-dev/attachments/20250813/09534961/attachment-0001.htm>
More information about the rails-dev
mailing list