[openstreetmap-website] Do not fit map to search result (object) twice. (#413)

Martin Raifer notifications at github.com
Mon Aug 5 11:21:46 UTC 2013


When clicking on search results the respective osm object is loaded asynchronously and afterwards shown on the map. Some objects (e.g. administrative boundaries) can take a few seconds to load (or more). If a user already panned/zoomed the map in the meantime, his actions are reverted when the map fits to the object again. This can be quite annoying.

There is actually no need for this behaviour, because a good geocoder does already return an appropriate bounding box of the search result.
You can merge this Pull Request by running:

  git pull https://github.com/tyrasd/openstreetmap-website master

Or you can view, comment on it, or merge it online at:

  https://github.com/openstreetmap/openstreetmap-website/pull/413

-- Commit Summary --

  * Do not fit map to search result (object) twice.

-- File Changes --

    M app/assets/javascripts/index.js (2)

-- Patch Links --

https://github.com/openstreetmap/openstreetmap-website/pull/413.patch
https://github.com/openstreetmap/openstreetmap-website/pull/413.diff

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/rails-dev/attachments/20130805/3a0dd322/attachment-0001.html>


More information about the rails-dev mailing list