]> git.openstreetmap.org Git - rails.git/blobdiff - app/views/export/start.rjs
Tweak export startup to stop silly image sizes being reported.
[rails.git] / app / views / export / start.rjs
index 3f1d73d689be9a5c2309d5ba92bc974d6afd39ff..2d3ec06ec3268286ac785cb2d94e69d06c4e1e2f 100644 (file)
@@ -25,8 +25,6 @@ page << <<EOJ
 
     openSidebar({ onclose: stopExport });
 
-    setBounds(map.getExtent());
-
     if (map.baseLayer.name == "Mapnik") {
       $("format_mapnik").checked = true;
     } else if (map.baseLayer.name == "Osmarender") {
@@ -34,6 +32,7 @@ page << <<EOJ
     }
 
     formatChanged();
+    setBounds(map.getExtent());
 
     $("viewanchor").className = "";
     $("exportanchor").className = "active";