2 <p>The OpenStreetMap database is currently in read-only mode while
3 essential database maintenance work is carried out.
6 <%= render :partial => 'search' %>
8 <% if params['mlon'] and params['mlat'] %>
9 <% lon = params['mlon'] %>
10 <% lat = params['mlat'] %>
11 <% zoom = params['zoom'] || '12' %>
12 <% elsif @user and params['lon'].nil? and params['lat'].nil? %>
13 <% lon = @user.home_lon %>
14 <% lat = @user.home_lat %>
17 <% lon = params['lon'] || '-0.1' %>
18 <% lat = params['lat'] || '51.5' %>
19 <% zoom = params['zoom'] || '12' %>
22 <div id="mapcontent">You need a Flash player to use Potlatch, the
23 OpenStreetMap Flash editor. You can <a href="http://www.adobe.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash">download Flash Player from Adobe.com</a>.
25 <a href="http://wiki.openstreetmap.org/index.php/Editing">Several other options</a> are also available
26 for editing OpenStreetMap.
28 <script type="text/javascript" src="/javascripts/swfobject.js"></script>
29 <script type="text/javascript">
30 var fo = new SWFObject("/potlatch/potlatch.swf?d="+Math.round(Math.random()*1000), "potlatch", "700", "600", "6", "#FFFFFF");
32 function doSWF(lat,lon,sc) {
33 fo.addVariable('lat',lat);
34 fo.addVariable('long',lon);
35 fo.addVariable('scale',sc);
36 fo.addVariable('token','<%= @user.token %>');
37 fo.write("mapcontent");
40 doSWF(<%= lat %>,<%= lon %>,<%= zoom %>);