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

svn_mapbender at osgeo.org svn_mapbender at osgeo.org
Wed Jul 23 02:53:36 EDT 2008


Author: tbaschetti
Date: 2008-07-23 02:53:36 -0400 (Wed, 23 Jul 2008)
New Revision: 2699

Modified:
   trunk/mapbender/http/print/mod_printPDF.php
Log:
fixes http://trac.osgeo.org/mapbender/ticket/205


Modified: trunk/mapbender/http/print/mod_printPDF.php
===================================================================
--- trunk/mapbender/http/print/mod_printPDF.php	2008-07-23 06:52:36 UTC (rev 2698)
+++ trunk/mapbender/http/print/mod_printPDF.php	2008-07-23 06:53:36 UTC (rev 2699)
@@ -198,6 +198,7 @@
 			map_height = <?php echo $a0l_map_height; ?>;
 		}     
 		var pos = pt.makeClickPos2RealWorldPos(target, map_width , map_height);
+		var prevscale= pt.mb_getScale(target);
 		pt.mb_mapObj[ind].extent = coord[0] + "," + pos[1] + "," + pos[0] + "," +  coord[3];
 
 		pt.mb_mapObj[ind].width = Math.round(map_width);
@@ -208,7 +209,7 @@
 		pt.window.frames[target].document.getElementById("maps").style.height = Math.round(map_height);
 
 		//pt.setMapRequest(target);		
-		pt.mb_repaintScale(target, null, null, pt.mb_getScale(target));
+		pt.mb_repaintScale(target, null, null, prevscale);
       	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