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

Anton Khorev notifications at github.com
Tue Mar 18 14:30:38 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));
+    }

`crs` can't even be `EPSG:something` according to the current rfc https://github.com/openstreetmap/openstreetmap-website/pull/5736#discussion_r2001173709

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

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


More information about the rails-dev mailing list