[Mapbender-commits] r5754 - trunk/mapbender/http/print

svn_mapbender at osgeo.org svn_mapbender at osgeo.org
Fri Mar 12 11:52:25 EST 2010


Author: tbaschetti
Date: 2010-03-12 11:52:24 -0500 (Fri, 12 Mar 2010)
New Revision: 5754

Modified:
   trunk/mapbender/http/print/mod_printPDF.php
Log:

preserve scale for print
http://trac.osgeo.org/mapbender/ticket/205



Modified: trunk/mapbender/http/print/mod_printPDF.php
===================================================================
--- trunk/mapbender/http/print/mod_printPDF.php	2010-03-12 16:51:11 UTC (rev 5753)
+++ trunk/mapbender/http/print/mod_printPDF.php	2010-03-12 16:52:24 UTC (rev 5754)
@@ -208,8 +208,8 @@
 			map_el.style.height = Math.round(map_height);
 
 			//pt.setMapRequest(target);
-//			pt.mb_repaintScale(target, null, null, prevscale);
-			pt.mb_repaint(target, parseFloat(coord[0]), pos[1], pos[0], parseFloat(coord[3]));
+			pt.mb_repaintScale(target, null, null, prevscale);
+//			pt.mb_repaint(target, parseFloat(coord[0]), pos[1], pos[0], parseFloat(coord[3]));
 		document.form1.map_url.value = '';
 			for(var i=0; i<pt.mb_mapObj[ind].wms.length; i++){
 				if(pt.mb_mapObj[ind].wms[i].gui_wms_visible > 0){



More information about the Mapbender_commits mailing list