[Mapbender-commits] r7322 - trunk/mapbender/http/php

svn_mapbender at osgeo.org svn_mapbender at osgeo.org
Thu Dec 16 11:22:14 EST 2010


Author: armin11
Date: 2010-12-16 08:22:14 -0800 (Thu, 16 Dec 2010)
New Revision: 7322

Modified:
   trunk/mapbender/http/php/mod_wmc2ol.php
Log:
Some Bugfixes

Modified: trunk/mapbender/http/php/mod_wmc2ol.php
===================================================================
--- trunk/mapbender/http/php/mod_wmc2ol.php	2010-12-16 13:26:29 UTC (rev 7321)
+++ trunk/mapbender/http/php/mod_wmc2ol.php	2010-12-16 16:22:14 UTC (rev 7322)
@@ -305,6 +305,8 @@
 			$miny_new=$array_bbox[1];
 			$maxx_new=$array_bbox[2];
 			$maxy_new=$array_bbox[3];
+			$centralx=($maxx_new+$minx_new)/2;
+			$centraly=($maxy_new+$miny_new)/2;
 			if(isset($_REQUEST["mb_myBBOXEpsg"])){
 				//Check epsg
 				$targetEpsg=intval($_REQUEST["mb_myBBOXEpsg"]);
@@ -347,6 +349,8 @@
 				$miny_new=$array_bbox[1];
 				$maxx_new=$array_bbox[2];
 				$maxy_new=$array_bbox[3];
+				$centralx=($maxx_new+$minx_new)/2;
+				$centraly=($maxy_new+$miny_new)/2;
 				}
 			}
 		}



More information about the Mapbender_commits mailing list