Make the "larger map" link on an HTML export point at the right layer.
authorTom Hughes <tom@compton.nu>
Mon, 19 May 2008 10:00:52 +0000 (10:00 +0000)
committerTom Hughes <tom@compton.nu>
Mon, 19 May 2008 10:00:52 +0000 (10:00 +0000)
app/views/export/start.rjs

index 2babcc982e2d78ac5df6380d10836b21cfe94736..47cf9ce6bf21feddbcec4cc630233677fd30205c 100644 (file)
@@ -246,7 +246,9 @@ page << <<EOJ
     bounds.transform(epsg4326, epsg900913);
     var zoom = map.getZoomForExtent(bounds);
     
-    html += '<br /><small><a href="http://#{SERVER_URL}/?lat='+center.lat+'&lon='+center.lon+'&zoom='+zoom+markerUrl+'">View Larger Map</a></small>';
+    var layers = getMapLayers();
+
+    html += '<br /><small><a href="http://#{SERVER_URL}/?lat='+center.lat+'&lon='+center.lon+'&zoom='+zoom+'&layers='+layers+markerUrl+'">View Larger Map</a></small>';
 
     $("export_html_text").value = html;