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 e27164f..4305e07 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");