]> git.openstreetmap.org Git - rails.git/commitdiff
Avoid a JS error on (e.g.) ?way=nnnnn
authorJohn Firebaugh <john.firebaugh@gmail.com>
Tue, 2 Oct 2012 02:21:37 +0000 (19:21 -0700)
committerTom Hughes <tom@compton.nu>
Tue, 2 Oct 2012 17:22:17 +0000 (18:22 +0100)
When showing an object, the map location is not set
until the vector layer has finished loading. Thus
map.getCenter() returns null.

Registering the events earlier avoids the need to call
updateLocation manually at all.


No differences found