[openstreetmap/openstreetmap-website] Refactor more of the internal coordiante usage to `{ lat, lng }` (PR #7039)

Marwin Hochfelsner notifications at github.com
Sun Apr 26 18:22:48 UTC 2026


hlfan left a comment (openstreetmap/openstreetmap-website#7039)

Yup. Both Leaflet and MapLibre have their own coordinate classes ([LatLng](https://leafletjs.com/reference.html#latlng) and [LngLat](https://maplibre.org/maplibre-gl-js/docs/API/classes/LngLat/) respectively) and also accept primitive arrays and plain objects.
Because the two libraries use different array orders, the plain‑object form gives us a single unambiguous representation that will remain valid throughout the migration.

-- 
Reply to this email directly or view it on GitHub:
https://github.com/openstreetmap/openstreetmap-website/pull/7039#issuecomment-4322690442
You are receiving this because you are subscribed to this thread.

Message ID: <openstreetmap/openstreetmap-website/pull/7039/c4322690442 at github.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/rails-dev/attachments/20260426/35e643d5/attachment.htm>


More information about the rails-dev mailing list