From: Richard Fairhurst Date: Fri, 18 Sep 2009 14:11:18 +0000 (+0000) Subject: add ability to specify custom background in the query string X-Git-Tag: live~7318 X-Git-Url: https://git.openstreetmap.org./rails.git/commitdiff_plain/00332614f9ceb89931289bcf8f17a52716124483 add ability to specify custom background in the query string --- diff --git a/app/views/site/edit.html.erb b/app/views/site/edit.html.erb index 79b1f64af..948b1fad5 100644 --- a/app/views/site/edit.html.erb +++ b/app/views/site/edit.html.erb @@ -78,9 +78,10 @@ zoom='14' if zoom.nil? fo.addVariable('token','<%= session[:token] %>'); if (lat) { fo.addVariable('lat',lat); } if (lon) { fo.addVariable('long',lon); } - <% 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 %> + <% 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 %> + <% if params['tileurl'] %>fo.addVariable('custombg','<%= h(params['tileurl']) %>');<% end %> fo.write("map"); }