]> git.openstreetmap.org Git - rails.git/blobdiff - app/views/site/index.html.erb
Always update perma and shortlinks, keeping layers
[rails.git] / app / views / site / index.html.erb
index 71cafacbc2d7794dea2869706419513e16a05d1f..86eed75566eb2a55ab3d2c6d09c2a670d5b995a1 100644 (file)
@@ -160,8 +160,6 @@ end
 
         setMapCenter(centre, zoom);
       <% end %>
-
-      updateLocation();
     <% end %>
 
     <% if !layers.nil? and !layers.empty? %>
@@ -185,6 +183,7 @@ end
     map.events.register("moveend", map, updateLocation);
     map.events.register("changelayer", map, updateLocation);
 
+    updateLocation();
     handleResize();
   }