]> git.openstreetmap.org Git - rails.git/commitdiff
Update the links when the active layers change.
authorTom Hughes <tom@compton.nu>
Wed, 2 Jan 2008 09:54:19 +0000 (09:54 +0000)
committerTom Hughes <tom@compton.nu>
Wed, 2 Jan 2008 09:54:19 +0000 (09:54 +0000)
Closes #622.

app/views/site/index.rhtml

index a83053c070249f81f4ad63db24a9c8ce99026075..27bcd618e34a1b173add177bc00cc469748f4341 100644 (file)
@@ -114,6 +114,7 @@ by the OpenStreetMap project and it's contributors.
     map.events.register("zoomend", map, updateKey);
 
     map.events.register("moveend", map, updateLocation);
+    map.events.register("changelayer", map, updateLocation);
     updateLocation();
 
     handleResize();