[Mapbender-commits] r4558 - trunk/mapbender/http/classes

svn_mapbender at osgeo.org svn_mapbender at osgeo.org
Fri Aug 28 08:57:24 EDT 2009


Author: christoph
Date: 2009-08-28 08:57:24 -0400 (Fri, 28 Aug 2009)
New Revision: 4558

Modified:
   trunk/mapbender/http/classes/class_wms.php
Log:


Modified: trunk/mapbender/http/classes/class_wms.php
===================================================================
--- trunk/mapbender/http/classes/class_wms.php	2009-08-28 12:54:35 UTC (rev 4557)
+++ trunk/mapbender/http/classes/class_wms.php	2009-08-28 12:57:24 UTC (rev 4558)
@@ -624,7 +624,7 @@
 				
 				if(mb_strtoupper($element[tag]) == "SRS"){
 					// unique srs only, see http://www.mapbender.org/index.php/Arrays_with_unique_entries
-					$this->wms_srs = array_keys(array_flip(array_merge($this->wms_srs, explode(" ", $element[value]))));  				
+					$this->wms_srs = array_keys(array_flip(array_merge($this->wms_srs, explode(" ", $element[value]))));
 				}						      
 				if(mb_strtoupper($element[tag]) == "LATLONBOUNDINGBOX"){
 					$cnt_epsg++;
@@ -815,7 +815,7 @@
 		echo "gui_wms_featureinfoformat: " . $this->gui_wms_featureinfoformat . " <br>";
 		echo "gui_wms_exceptionformat: " . $this->gui_wms_exceptionformat . " <br>";	
 		echo "gui_wms_epsg: " . $this->gui_wms_epsg . " <br>";
-		echo "wms_srs: " . implode(", ", $this->wms_srs) . " <br>";		
+		echo "wms_srs: " . implode(", ", $this->wms_srs) . " <br>";
 		echo "gui_wms_visible: " . $this->gui_wms_visible . " <br>";
 		echo "gui_wms_opacity: " . $this->gui_wms_opacity . " <br>";
 		echo "support_sld: " . $this->wms_supportsld . " <br>";
@@ -1033,11 +1033,11 @@
 					$this->objLayer[$i]->layer_epsg[$j]["maxy"] ."');";
 			}
 			for($j=0; $i==0 && $j<count($this->wms_srs);$j++){
-					if($parent){
+				if($parent){
 					$str .= "parent.";
-					}
-					$str .= "wms_addSRS('". 
-						$this->wms_srs[$j] ."', null, null, null, null);\n";
+				}
+				$str .= "wms_addSRS('". 
+				$this->wms_srs[$j] ."', null, null, null, null);\n";
 			}
 			for($j=0; $j<count($this->objLayer[$i]->layer_style);$j++){
 				if($parent){



More information about the Mapbender_commits mailing list