]> git.openstreetmap.org Git - rails.git/commitdiff
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 a1953a1302b11dbf1d7b0c691f16c4803f232be9..c9d589e8ced007f43035d8b957c03bd1e7616561 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();
     }