]> git.openstreetmap.org Git - rails.git/commitdiff
Add support for the tileurl parameter to Potlatch 2
authorTom Hughes <tom@compton.nu>
Tue, 14 Dec 2010 21:19:08 +0000 (21:19 +0000)
committerTom Hughes <tom@compton.nu>
Wed, 15 Dec 2010 23:59:07 +0000 (23:59 +0000)
app/views/site/_potlatch2.html.erb

index e27164fa8ee8e54302233bcbf6d59d7a3935c56d..4305e07b9f549f6b5a05c48fa60381a8cb82cb44 100644 (file)
@@ -27,6 +27,9 @@
     <% if params['gpx'] %>
     fo.addVariable('gpx' ,'<%= h(params['gpx']) %>');
     <% end %>
+    <% if params['tileurl'] %>
+    fo.addVariable('tileurl' ,'<%= h(params['tileurl']) %>');
+    <% end %>
     fo.addVariable("zoom",zoom);
     fo.addVariable("api","<%= request.protocol + request.host_with_port %>/api/<%= API_VERSION %>/");
     fo.addVariable("policy","<%= request.protocol + request.host_with_port %>/api/crossdomain.xml");