[openstreetmap/openstreetmap-website] Parse URL zoom level with decimals? (Issue #6763)
Nils
notifications at github.com
Fri Jan 30 11:12:59 UTC 2026
nilsnolde created an issue (openstreetmap/openstreetmap-website#6763)
### Problem
In our [Valhalla web app](https://valhalla.openstreetmap.de/directions?profile=bicycle&style=carto), we have a button in the lower-right to jump to osm.org which is supposed to open at the same/similar extent & zoom. Very convenient for app users and also for us when debugging.
Currently osm.org would open at smaller/larger extent than our view bcs of rounding
### Description
Would you accept a change that would parse the zoom level as decimal? The browser URL could stay as it is (i.e. truncate/round to integer), just using it for zooming/extent.
### Screenshots
This is what it looks like currently. We also simply floor the float zoom currently, but that's a separate bug.
<img width="2256" height="1448" alt="Image" src="https://github.com/user-attachments/assets/d010d716-45ed-48d3-9f58-c7070e93a0bf" /> <img width="2256" height="1448" alt="Image" src="https://github.com/user-attachments/assets/0a30dab2-ff76-4602-adb9-4461501c5620" />
--
Reply to this email directly or view it on GitHub:
https://github.com/openstreetmap/openstreetmap-website/issues/6763
You are receiving this because you are subscribed to this thread.
Message ID: <openstreetmap/openstreetmap-website/issues/6763 at github.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/rails-dev/attachments/20260130/38ecd956/attachment-0001.htm>
More information about the rails-dev
mailing list