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

Marwin Hochfelsner notifications at github.com
Wed Mar 12 15:48:05 UTC 2025


@hlfan commented on this pull request.



> @@ -100,6 +106,9 @@ OSM = {
       mapParams.lon = params.mlon;
       mapParams.lat = params.mlat;
       mapParams.zoom = params.zoom || 12;
+    } else if (geoURI.pathname) {
+      [mapParams.lat, mapParams.lon] = geoURI.pathname.split(",");

I thought we wouldn't parse these parameters with the move to `new URL` and parseFloat takes care of these things anyway.

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

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


More information about the rails-dev mailing list