X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/bac5d79c7282c3498c1eee2d00d32e1ab93d0c2e..16358a1d39d96a2d04ab410731c9edcdf155606b:/app/views/site/edit.rhtml diff --git a/app/views/site/edit.rhtml b/app/views/site/edit.rhtml index c93927ae3..a1b0a4925 100644 --- a/app/views/site/edit.rhtml +++ b/app/views/site/edit.rhtml @@ -1,7 +1,18 @@ - +<%= render :partial => 'search' %> + +<% if params['mlon'] and params['mlat'] %> +<% 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 %> +<% zoom = '12' %> +<%else%> +<% lon = params['lon'] || '-0.1' %> +<% lat = params['lat'] || '51.5' %> +<% zoom = params['zoom'] || '12' %> +<% end %>