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

svn_mapbender at osgeo.org svn_mapbender at osgeo.org
Thu Jul 22 10:35:00 EDT 2010


Author: verenadiewald
Date: 2010-07-22 14:34:59 +0000 (Thu, 22 Jul 2010)
New Revision: 6610

Modified:
   trunk/mapbender/http/javascripts/mod_setBBOX1.php
Log:
set performTransformation true if param mb_myBBOXEpsg_transform is not empty

Modified: trunk/mapbender/http/javascripts/mod_setBBOX1.php
===================================================================
--- trunk/mapbender/http/javascripts/mod_setBBOX1.php	2010-07-22 14:33:00 UTC (rev 6609)
+++ trunk/mapbender/http/javascripts/mod_setBBOX1.php	2010-07-22 14:34:59 UTC (rev 6610)
@@ -24,13 +24,10 @@
 	var targetArray = targetString.split(",");
 	var bboxString = "<?php echo Mapbender::session()->get("mb_myBBOX") ?>";
 	var srs = "<?php echo Mapbender::session()->get("mb_myBBOXEpsg") ?>";
+	var transformationEpsg = "<?php echo Mapbender::session()->get("mb_myBBOXEpsg_transform")?>";
 	var performTransformation = 
-		("<?php 
-			echo Mapbender::session()->get("mb_myBBOXEpsg_transform") 
-		?>" === "1") ? true : false;
+		(transformationEpsg != "") ? true : false;
 		
-		
-
 	//
 	// the user wants to set an SRS that is different from the 
 	// application's SRS!
@@ -79,7 +76,6 @@
 });
 
 var setBbox = function (targetArray, bboxString) { 
-
 	for (var i = 0; i < targetArray.length; i++) {
 		var currentTarget = targetArray[i];
 		
@@ -110,7 +106,7 @@
 		if (mapObj.restrictedExtent) {
 			mapObj.setRestrictedExtent(newExtent);
 		}
-		mapObj.calculateExtent(newExtent);		
+		mapObj.calculateExtent(newExtent);
 		mapObj.setMapRequest();		
 	}
 };



More information about the Mapbender_commits mailing list