@hlfan commented on this pull request.
> mapParams = {};
+ [geoURI.coordstring, ...geoURI.params] = geoURI.pathname.split(";");
+ geoURI.params = Object.fromEntries([...geoURI.searchParams,
...geoURI.params.map(p => p.split("=").map(decodeURIComponent))]);
I'm now using `URLSearchParams.getAll` to get the last zoom parameter that can
be parsed as an integer.
--
Reply to this email directly or view it on GitHub:
https://github.com/openstreetmap/openstreetmap-website/pull/5736#discussion_r2002099571
You are receiving this because you are subscribed to this thread.
Message ID:
<openstreetmap/openstreetmap-website/pull/5736/review/2696434...@github.com>
_______________________________________________
rails-dev mailing list
rails-dev@openstreetmap.org
https://lists.openstreetmap.org/listinfo/rails-dev