X-Git-Url: https://git.openstreetmap.org/rails.git/blobdiff_plain/a373f2ab8a1235def98ba8f4129461f1ae339b6e..409576eea0542c650f3937624bb21a68ac58d6fd:/app/views/site/_potlatch2.html.erb diff --git a/app/views/site/_potlatch2.html.erb b/app/views/site/_potlatch2.html.erb index 57a45f2ab..d2358f05e 100644 --- a/app/views/site/_potlatch2.html.erb +++ b/app/views/site/_potlatch2.html.erb @@ -24,6 +24,9 @@ fo.addParam("base","/potlatch2"); if (lat) { fo.addVariable("lat",lat); } if (lon) { fo.addVariable("lon",lon); } + <% if params['gpx'] %> + fo.addVariable('gpx' ,'<%= h(params['gpx']) %>'); + <% end %> fo.addVariable("zoom",zoom); fo.addVariable("api","http://<%= SERVER_URL %>/api/<%= API_VERSION %>/"); fo.addVariable("policy","http://<%= SERVER_URL %>/api/crossdomain.xml");