]> git.openstreetmap.org Git - rails.git/commitdiff
Potlatch 0.8b
authorRichard Fairhurst <richard@systemed.net>
Tue, 22 Apr 2008 21:32:26 +0000 (21:32 +0000)
committerRichard Fairhurst <richard@systemed.net>
Tue, 22 Apr 2008 21:32:26 +0000 (21:32 +0000)
app/views/site/edit.rhtml
config/potlatch/autocomplete.txt
config/potlatch/presets.txt
public/potlatch/potlatch.swf

index c72a3ab1d75ecff9f945f28fc104db6543630049..ac54cb5e5f74c101f962b92fdb3c32657e479bd6 100644 (file)
 <% session[:token] = @user.tokens.create.token unless session[:token] %>
 
 <% if params['mlon'] and params['mlat'] %>
-<% lon =  h(params['mlon']) %>
-<% lat =  h(params['mlat'])  %>
-<% zoom =  h(params['zoom'] || '14') %>
+       <% lon =  h(params['mlon']) %>
+       <% lat =  h(params['mlat'])  %>
+       <% 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 = '14' %>
-<% elsif params['gpx'].nil? %>
-<% lon =  h(params['lon'] || '-0.1') %>
-<% lat =  h(params['lat'] || '51.5') %>
-<% zoom =  h(params['zoom'] || '14') %>
+       <% lon =  @user.home_lon %>
+       <% lat =  @user.home_lat %>
+       <% zoom = '14' %>
 <% else %>
-<% lon = nil %>
-<% lat = nil %>
-<% zoom = '14' %>
+       <% lon =  h(params['lon'] || 'null') %>
+       <% lat =  h(params['lat'] || 'null') %>
+       <% zoom =  h(params['zoom'] || '14') %>
 <% end %>
 
-<div id="map">You need a Flash player to use Potlatch, the
+<div id="map">
+       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
     for editing OpenStreetMap.
 </div>
+
 <%= javascript_include_tag 'swfobject.js' %>
 <script type="text/javascript" defer="defer">
   var brokenContentSize = $("content").offsetWidth == 0;
@@ -68,7 +66,7 @@
     if (lat) { fo.addVariable('lat',lat); }
     if (lon) { fo.addVariable('long',lon); }
     <% if params['gpx'] %>
-    fo.addVariable('gpx','<%= h(params['gpx']) + "/data.xml" %>');
+               fo.addVariable('gpx','<%= h(params['gpx']) %>');
     <% end %>
     fo.write("map");
   }
index 3480355ee873908362e19e5392f21b52d21f08be..6a301822becb56e6a7e8dea7a5b187511842706b 100755 (executable)
@@ -1,7 +1,7 @@
 # Potlatch autocomplete values
 # each line should be: key / way|point|POI (tab) list_of_values
 # '-' indicates no autocomplete for values
-highway/way            motorway,motorway_link,trunk,trunk_link,primary,primary_link,secondary,tertiary,unclassified,residential,service,bridleway,cycleway,footway,pedestrian,steps
+highway/way            motorway,motorway_link,trunk,trunk_link,primary,primary_link,secondary,tertiary,unclassified,residential,service,bridleway,cycleway,footway,pedestrian,steps,living_street
 highway/point  mini_roundabout,traffic_signals,crossing,gate,stile,cattle_grid,toll_booth,incline,viaduct,motorway_junction,services,ford,bus_stop
 junction/way   roundabout
 cycleway/way   lane,track,opposite_lane,opposite_track,opposite
index d7e1494f09e0987f604ecc3956aef05b9f8ba508..ecca87d724f7bc5f8ba40aa29fcedf92bf462871 100644 (file)
@@ -3,9 +3,10 @@ motorway: highway=motorway,ref=(type road number)
 trunk road: highway=trunk,ref=(type road number),name=(type road name)
 primary road: highway=primary,ref=(type road number),name=(type road name)
 secondary road: highway=secondary,ref=(type road number),name=(type road name)
-tertiary road: highway=tertiary,ref=,name=(type road name)
-residential road: highway=residential,ref=,name=(type road name)
+tertiary road: highway=tertiary,ref=(type road number),name=(type road name)
 unclassified road: highway=unclassified,ref=,name=(type road name)
+residential road: highway=residential,ref=,name=(type road name)
+service road: highway=service,ref=,name=
 
 way/footway
 footpath: highway=footway,foot=yes
index bbea6ea233f0af35cd9012241c3a431316bf53eb..e14e7099328c93740ea6d1b0bac9ec0d091ac096 100755 (executable)
Binary files a/public/potlatch/potlatch.swf and b/public/potlatch/potlatch.swf differ