diff src/java/de/intevation/mxd/writer/MapScriptWriter.java @ 257:1ac277053049

Set map size after setting map extent to avoid the extent to be modified by mapscript.
author raimund renkert <raimund.renkert@intevation.de>
date Mon, 15 Aug 2011 15:28:05 +0200
parents cedb23deb057
children 4bae15d560d3
line wrap: on
line diff
--- a/src/java/de/intevation/mxd/writer/MapScriptWriter.java	Mon Aug 15 15:03:44 2011 +0200
+++ b/src/java/de/intevation/mxd/writer/MapScriptWriter.java	Mon Aug 15 15:28:05 2011 +0200
@@ -169,6 +169,8 @@
 	    mapNode.getAttribute("extent_max_x") + ", " +
 	    mapNode.getAttribute("extent_max_y"));
 
+	map.setSize(800, 600);
+
         //Set the units and projection.
         int proj = Integer.parseInt(mapNode.getAttribute("projection"));
         if(proj != 0) {
This site is hosted by Intevation GmbH (Datenschutzerklärung und Impressum | Privacy Policy and Imprint)