]> git.openstreetmap.org Git - rails.git/blobdiff - app/views/export/start.rjs
Make the "larger map" link on an HTML export point at the right layer.
[rails.git] / 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;