X-Git-Url: https://git.openstreetmap.org/rails.git/blobdiff_plain/9634ab8fc1a2bd8bfd3a6e9c83315d31c277861c..2408dd333f43c98c23c5539e90b327055a06659a:/app/views/site/index.rhtml diff --git a/app/views/site/index.rhtml b/app/views/site/index.rhtml index 2a468f893..dc488089d 100644 --- a/app/views/site/index.rhtml +++ b/app/views/site/index.rhtml @@ -1,4 +1,6 @@ -<%= render :partial => 'search' %> +<%= render :partial => 'search', :locals => { :onopen => "resizeMap();", :onclose => "resizeMap();" } %> + +
<% if params['mlon'] and params['mlat'] %> <% marker = true %> @@ -6,6 +8,14 @@ <% mlat = params['mlat'] %> <% end %> +<% if params['minlon'] and params['minlat'] and params['maxlon'] and params['maxlat'] %> +<% bbox = true %> +<% minlon = params['minlon'] %> +<% minlat = params['minlat'] %> +<% maxlon = params['maxlon'] %> +<% maxlat = params['maxlat'] %> +<% end %> + <% if params['lon'] and params['lat'] %> <% lon = params['lon'] %> <% lat = params['lat'] %> @@ -32,51 +42,57 @@ <%= javascript_include_tag 'map.js' %> -<% unless @user %> - -<% end %> -