[Mapbender-commits] r4980 - branches/2.6/http/javascripts

svn_mapbender at osgeo.org svn_mapbender at osgeo.org
Fri Nov 13 06:00:30 EST 2009


Author: christoph
Date: 2009-11-13 06:00:28 -0500 (Fri, 13 Nov 2009)
New Revision: 4980

Modified:
   branches/2.6/http/javascripts/mod_resize_mapsize.php
Log:


Modified: branches/2.6/http/javascripts/mod_resize_mapsize.php
===================================================================
--- branches/2.6/http/javascripts/mod_resize_mapsize.php	2009-11-12 13:07:20 UTC (rev 4979)
+++ branches/2.6/http/javascripts/mod_resize_mapsize.php	2009-11-13 11:00:28 UTC (rev 4980)
@@ -95,8 +95,14 @@
 	midcoordy=parseFloat((parseFloat(coords[3])-parseFloat(coords[1]))/2)+parseFloat(coords[1]);
 	mb_mapObj[ind].setWidth(mapwidth);
 	mb_mapObj[ind].setHeight(mapheight);
+	mb_mapObj[ind].calculateExtent(new Extent(
+		parseFloat(coords[0]), 
+		parseFloat(coords[1]), 
+		parseFloat(coords[2]), 
+		parseFloat(coords[3])
+	));
 	if (!skipMapRequest) {
-		mb_mapObj[ind].repaintScale(midcoordx,midcoordy,mb_mapObj[ind].getScale("skipEpsg4326"));
+		mb_mapObj[ind].setMapRequest();
 	}
 }
 



More information about the Mapbender_commits mailing list