X-Git-Url: https://git.openstreetmap.org/rails.git/blobdiff_plain/da76d64e93fc2892ab567f4ca6dc9a6eac4385b6..f1c0834c5cd5ddfa3d79d24b200e995597fe11f4:/app/views/site/edit.rhtml diff --git a/app/views/site/edit.rhtml b/app/views/site/edit.rhtml index ab6d70575..c72a3ab1d 100644 --- a/app/views/site/edit.rhtml +++ b/app/views/site/edit.rhtml @@ -26,15 +26,19 @@ <% if params['mlon'] and params['mlat'] %> <% lon = h(params['mlon']) %> <% lat = h(params['mlat']) %> -<% zoom = h(params['zoom'] || '12') %> -<% elsif @user and params['lon'].nil? and params['lat'].nil? %> +<% zoom = h(params['zoom'] || '14') %> +<% elsif @user and params['lon'].nil? and params['lat'].nil? and params['gpx'].nil? %> <% lon = @user.home_lon %> <% lat = @user.home_lat %> -<% zoom = '12' %> -<%else%> +<% zoom = '14' %> +<% elsif params['gpx'].nil? %> <% lon = h(params['lon'] || '-0.1') %> <% lat = h(params['lat'] || '51.5') %> -<% zoom = h(params['zoom'] || '12') %> +<% zoom = h(params['zoom'] || '14') %> +<% else %> +<% lon = nil %> +<% lat = nil %> +<% zoom = '14' %> <% end %>
You need a Flash player to use Potlatch, the @@ -44,7 +48,7 @@ for editing OpenStreetMap.
<%= javascript_include_tag 'swfobject.js' %> - <% end %>