]> git.openstreetmap.org Git - rails.git/blobdiff - app/views/site/edit.rhtml
zoom
[rails.git] / app / views / site / edit.rhtml
index 55cdcfed62b70b256c26c6cd41563b03c4112b84..c93927ae300430535886626e57f4df1094524b7d 100644 (file)
@@ -1,7 +1,12 @@
-<div id="mapcontent">Sorry, you need a Flash player to use Potlatch, the
+<!-- <p>This editor isn't working yet - currently you can only browse the aerial photos.
+See <a href="http://trac.openstreetmap.org/ticket/402">Trac #402</a> for more details.
+You may also want to look at <a href="http://josm.eigenheimstrasse.de/">JOSM</a> for a
+fully functional desktop client editor for OpenStreetMap.</p> -->
+
+<div id="mapcontent">You need a Flash player to use Potlatch, the
     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>.
 
-    <a href="http://wiki.openstreetmap.org/index.php/Editing">Several other options</a> are also available 
+    <a href="http://wiki.openstreetmap.org/index.php/Editing">Several other options</a> are also available
     for editing OpenStreetMap.</div>
   <script type="text/javascript" src="/javascripts/swfobject.js"></script>
   <script type="text/javascript">
       fo.addVariable('lat',lat);
       fo.addVariable('long',lon);
       fo.addVariable('scale',sc);
-      fo.addVariable('token','tokenstring');
+      fo.addVariable('token','<%= @user.token %>');
       fo.write("mapcontent");
     }
-<% lon =  params['lon'] || '-0.1' %>
-<% lat =  params['lat'] || '51.5' %>
-<% zoom =  params['zoom'] || '12' %>
+<% lon =  params['lon'] || @user.home_lon || '-0.1' %>
+<% lat =  params['lat'] || @user.home_lat || '51.5' %>
+<% zoom =  params['zoom'] || 12 %>
 
-    doSWF(<%= lat %>,<%= lon %>,12);
+    doSWF(<%= lat %>,<%= lon %>,<%= zoom %>);
 
 </script>