Update the image size when we switch to the mapnik export format
authorTom Hughes <tom@compton.nu>
Mon, 27 Aug 2012 21:54:04 +0000 (22:54 +0100)
committerTom Hughes <tom@compton.nu>
Mon, 27 Aug 2012 21:54:04 +0000 (22:54 +0100)
app/assets/javascripts/export.js

index a1953a1..c9d589e 100644 (file)
@@ -277,6 +277,8 @@ function startExport(sidebarHtml) {
     if ($("#format_mapnik").prop("checked")) {
       $("#mapnik_scale").val(roundScale(map.getScale()));
       $("#export_mapnik").show();
+
+      mapnikSizeChanged();
     } else {
       $("#export_mapnik").hide();
     }