[openstreetmap/openstreetmap-website] Search and clicking on GPS coordinates does not zoom in (#2197)

Tom Hughes notifications at github.com
Tue Apr 2 10:05:14 UTC 2019


Actually it does zoom, it's just that the zoom level for a lat+lon result is set to the zoom level of the map when you did the search. If you have moved or zoomed the map at all then clicking on the map will go back to the original zoom.

An address is different because an address is attached to an object, which has a size, so we can zoom in to that object.

For a lat/lon we have no idea how close in, or far out, you might want to be as a simple position doesn't given any indication of the size of the area you are interested in. The best we could probably do is hardcode it to some sort of mid level as we currently do for some post code results.

-- 
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/2197#issuecomment-478930268
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/rails-dev/attachments/20190402/1884fd5f/attachment.html>


More information about the rails-dev mailing list