[openstreetmap/openstreetmap-website] Can't link to search results AND map position / zoom level at the same time (#3221)

Shawn Inder notifications at github.com
Fri Jun 11 14:58:27 UTC 2021


I was searching for a river in open street maps, and once I had the search results in the sidebar, I just zoomed out to see most of Canada so that I could just hover my mouse over the search results and see the markers appear over the map. Very useful :) But when I try sharing this with my friends (by copying the url), it works for a second but then the map zooms in on the first search result rather than staying where I set it and respecting the `#map=6/46.198/-80.652` part of the URL…

Here is the original URL I was trying to share: https://www.openstreetmap.org/search?query=pine%20river%2C%20ontario#map=6/46.198/-80.652

Notice the `#map=6/46.198/-80.652`. When I visit that link, a second after the page loads, the zoom level and position change to `#map=19/48.11675/-90.77026`.

Is this a bug? Am I using the map incorrectly?

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/openstreetmap/openstreetmap-website/issues/3221
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/rails-dev/attachments/20210611/29a87d91/attachment.htm>


More information about the rails-dev mailing list