</p>
<% elsif !@user.data_public? %>
<p>You haven't set your edits to be public.</p>
-<p>You can't use the online editor unless you do so. You can set your edits as public from your
-<%= link_to 'user page', {:controller => 'user', :action => 'account', :display_name => @user.display_name}%>.</p>
+<p>You can no longer edit the map unless you do so. You can set your edits as public from your
+<%= link_to 'user page', {:controller => 'user', :action => 'account', :display_name => @user.display_name, :anchor => 'public'}%>.</p>
<p>(<a href="http://wiki.openstreetmap.org/index.php/Disabling_anonymous_edits">Find out why this is the case.</a>)</p>
<% else %>
<% content_for :greeting do %>
zoom = h(params['zoom'])
elsif params['gpx']
+ # The user may pass a gpx and zoom
+ if params['zoom']
+ zoom = h(params['zoom'])
+ end
#use gpx id to locate (dealt with below)
elsif cookies.key?("_osm_location")
}
}
+ function markChanged(a) { changesaved=a; }
+
function doSWF(lat,lon,sc) {
if (sc < 11) sc = 11;
fo.addVariable('scale',sc);
fo.addVariable('token','<%= session[:token] %>');
if (lat) { fo.addVariable('lat',lat); }
if (lon) { fo.addVariable('long',lon); }
+ if (zoom) { fo.addVariable('zoom',zoom); }
<% if params['gpx'] %>fo.addVariable('gpx' ,'<%= h(params['gpx'] ) %>');<% end %>
<% if params['way'] %>fo.addVariable('way' ,'<%= h(params['way'] ) %>');<% end %>
<% if params['node'] %>fo.addVariable('node','<%= h(params['node']) %>');<% end %>