[openstreetmap/openstreetmap-website] Add PWA geo protocol handler (PR #5736)

Anton Khorev notifications at github.com
Tue Mar 18 13:45:46 UTC 2025


@AntonKhorev commented on this pull request.



> +    geoURI.epsg = geoURI.params.crs?.toUpperCase()?.replace(":", "");
+    if (geoURI.epsg?.startsWith("EPSG")) {
+      geoURI.coords = L.CRS.EPSG3857.unproject(L.CRS[geoURI.epsg]?.project(geoURI.coords));
+    }

Is it just an excuse to parse all geo parameters or something that's actually supposed to work?

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

Message ID: <openstreetmap/openstreetmap-website/pull/5736/review/2694624268 at github.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/rails-dev/attachments/20250318/48aade10/attachment.htm>


More information about the rails-dev mailing list