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");
doSWF(<%= @lat || 'null' %>,<%= @lon || 'null' %>,<%= @zoom %>);
function setPosition(lat, lon, zoom) {
- doSWF(lat, lon, zoom || 15);
+ $("potlatch").setPosition(lat, lon, Math.max(zoom || 15, 13));
}
</script>