[openstreetmap-website] Refine zooming and panning for note and data layers (#646)

Aaron Lidman notifications at github.com
Mon Dec 9 18:44:41 UTC 2013

Resolves #629 #643, improves #644.

Only centers and/or zooms when clicking a note or data on a new page load (such as directly visiting /note/xx) or if the data doesn't completely fit inside the map view. Otherwise the map view doesn't move and the item is simply highlighted.
You can merge this Pull Request by running:

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

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


-- Commit Summary --

  * Refine zooming and panning for note and data layers

-- File Changes --

    M app/assets/javascripts/index.js (14)
    M app/assets/javascripts/index/history.js (2)
    M app/assets/javascripts/index/note.js.erb (34)
    M app/assets/javascripts/leaflet.map.js.erb (11)

-- Patch Links --

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/rails-dev/attachments/20131209/30946809/attachment.html>

More information about the rails-dev mailing list