1 <div id="mapcontent">You need a Flash player to use Potlatch, the
2 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>.
4 <a href="http://wiki.openstreetmap.org/index.php/Editing">Several other options</a> are also available
5 for editing OpenStreetMap.</div>
6 <script type="text/javascript" src="/javascripts/swfobject.js"></script>
7 <script type="text/javascript">
8 var fo = new SWFObject("/potlatch/potlatch.swf?d="+Math.round(Math.random()*1000), "potlatch", "700", "600", "6", "#FFFFFF");
9 function doSWF(lat,lon,sc) {
10 fo.addVariable('lat',lat);
11 fo.addVariable('long',lon);
12 fo.addVariable('scale',sc);
13 fo.addVariable('token','<%= @user.token %>');
14 fo.write("mapcontent");
16 <% lon = params['lon'] || '-0.1' %>
17 <% lat = params['lat'] || '51.5' %>
19 doSWF(<%= lat %>,<%= lon %>,12);