X-Git-Url: https://git.openstreetmap.org/rails.git/blobdiff_plain/759f51a57cc59a097ae37faa618e240d08510a34..4259ca6572808ba26c39eb436f3ea37cba4241cd:/app/views/site/index.html.erb diff --git a/app/views/site/index.html.erb b/app/views/site/index.html.erb index 71cafacbc..86eed7556 100644 --- a/app/views/site/index.html.erb +++ b/app/views/site/index.html.erb @@ -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(); }