openstreetmap/openstreetmap-website — pull request #646 by aaronlidman (2013-12-09 18:44:39+00:00)
Title: Refine zooming and panning for note and data layers

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.