X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/e9d3d4d19bcdf91732db57ecaa8d4831c7f585a3..37e74fc5cbca3082a887f02ff320f5c72254df3c:/app/views/site/index.rhtml
diff --git a/app/views/site/index.rhtml b/app/views/site/index.rhtml
index bb730c448..4d3b4e7e8 100644
--- a/app/views/site/index.rhtml
+++ b/app/views/site/index.rhtml
@@ -7,10 +7,6 @@
<% lon = params['mlon'] %>
<% lat = params['mlat'] %>
<% zoom = params['zoom'] || '12' %>
-
<% elsif @user and params['lon'].nil? and params['lat'].nil? %>
<% lon = @user.home_lon %>
<% lat = @user.home_lat %>
@@ -21,89 +17,55 @@
<% zoom = params['zoom'] || '4' %>
<% end %>
+
+<%= javascript_include_tag 'map.js' %>
+<% unless @user %>
+
+<% end %>
-
-