[Mapbender-commits] r5500 - trunk/mapbender/http/javascripts

svn_mapbender at osgeo.org svn_mapbender at osgeo.org
Fri Feb 12 05:12:46 EST 2010


Author: verenadiewald
Date: 2010-02-12 05:12:45 -0500 (Fri, 12 Feb 2010)
New Revision: 5500

Modified:
   trunk/mapbender/http/javascripts/mod_back.php
Log:
minimal modification of extent of map image for new browser image request 

Modified: trunk/mapbender/http/javascripts/mod_back.php
===================================================================
--- trunk/mapbender/http/javascripts/mod_back.php	2010-02-11 11:35:02 UTC (rev 5499)
+++ trunk/mapbender/http/javascripts/mod_back.php	2010-02-12 10:12:45 UTC (rev 5500)
@@ -93,6 +93,14 @@
 		mb_mapObj[ind].width = mb_mapObj[ind].mb_MapHistoryObj[cnt].width;
 		mb_mapObj[ind].height = mb_mapObj[ind].mb_MapHistoryObj[cnt].height;     
 		mb_mapObj[ind].epsg = mb_mapObj[ind].mb_MapHistoryObj[cnt].epsg;
+		var extentMin = mb_mapObj[ind].mb_MapHistoryObj[cnt].extent.min;
+		var extentMax = mb_mapObj[ind].mb_MapHistoryObj[cnt].extent.max;
+		var buffer = parseFloat(0.000000001);
+		extentMin.x = extentMin.x - buffer;
+		extentMin.y = extentMin.y - buffer;
+		extentMax.x = extentMax.x - buffer;
+		extentMax.y = extentMax.y - buffer;
+		mb_mapObj[ind].extent = new Mapbender.Extent(extentMin, extentMax);
 		mb_mapObj[ind].extent = new Mapbender.Extent(mb_mapObj[ind].mb_MapHistoryObj[cnt].extent.min, mb_mapObj[ind].mb_MapHistoryObj[cnt].extent.max);
 		mb_mapObj[ind].layers = mb_mapObj[ind].mb_MapHistoryObj[cnt].layers;
 		mb_mapObj[ind].styles = mb_mapObj[ind].mb_MapHistoryObj[cnt].styles;



More information about the Mapbender_commits mailing list