[openstreetmap/openstreetmap-website] Can't link to search results AND map position / zoom level at the same time (#3221)
Minh Nguyễn
notifications at github.com
Thu Mar 12 16:55:54 UTC 2026
1ec5 left a comment (openstreetmap/openstreetmap-website#3221)
This is sort of a feature, since the `map` hash parameter gets appended automatically and may not be part of what you wanted to share. But in this case, it was something you wanted to share. There’s no distinction unfortunately.
Incidentally, I was thinking you could work around this issue by using the older URL query parameters, e.g., `https://www.openstreetmap.org/search?query=pine river%2C ontario&zoom=6&lat=46.198&lon=-80.652`. That does maintain the intended viewport but drops the query!
<img width="350" height="226" alt="46.198, -80.652" src="https://github.com/user-attachments/assets/669caeea-6dd4-4f0d-ac99-47f46ec0a316" />
I think that’s happening is that the `lat` and `lon` parameters are being interpreted as the query itself, for when you want to do reverse geocoding.
--
Reply to this email directly or view it on GitHub:
https://github.com/openstreetmap/openstreetmap-website/issues/3221#issuecomment-4048375563
You are receiving this because you are subscribed to this thread.
Message ID: <openstreetmap/openstreetmap-website/issues/3221/4048375563 at github.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/rails-dev/attachments/20260312/c2ecbb8c/attachment.htm>
More information about the rails-dev
mailing list