From 00332614f9ceb89931289bcf8f17a52716124483 Mon Sep 17 00:00:00 2001 From: Richard Fairhurst Date: Fri, 18 Sep 2009 14:11:18 +0000 Subject: [PATCH] add ability to specify custom background in the query string --- app/views/site/edit.html.erb | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) 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"); } -- 2.39.5