]> git.openstreetmap.org Git - rails.git/blobdiff - app/views/site/index.rhtml
Fix tab breakage and make key update as zoom level changes.
[rails.git] / app / views / site / index.rhtml
index 625f17a109f62f0de68689338e8a63e9fd8dabfa..5ca8b0339b0d4af168bea33403b64e6a665ee7d5 100644 (file)
@@ -96,6 +96,8 @@
     marker = addMarkerToMap(lonLatToMercator(new OpenLayers.LonLat(<%= mlon %>, <%= mlat %>)));
     <% end %>
 
+    map.events.register("zoomend", map, updateKey);
+
     map.events.register("moveend", map, updateLocation);
     updateLocation();