]> git.openstreetmap.org Git - rails.git/commitdiff
Tweak export startup to stop silly image sizes being reported.
authorTom Hughes <tom@compton.nu>
Mon, 21 Apr 2008 08:14:15 +0000 (08:14 +0000)
committerTom Hughes <tom@compton.nu>
Mon, 21 Apr 2008 08:14:15 +0000 (08:14 +0000)
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";