[Mapbender-commits] r2880 - branches/nimix_dev/http/classes

svn_mapbender at osgeo.org svn_mapbender at osgeo.org
Tue Aug 19 05:17:32 EDT 2008


Author: nimix
Date: 2008-08-19 05:17:32 -0400 (Tue, 19 Aug 2008)
New Revision: 2880

Modified:
   branches/nimix_dev/http/classes/class_wms.php
Log:
remove dublicate ol function

Modified: branches/nimix_dev/http/classes/class_wms.php
===================================================================
--- branches/nimix_dev/http/classes/class_wms.php	2008-08-19 08:14:26 UTC (rev 2879)
+++ branches/nimix_dev/http/classes/class_wms.php	2008-08-19 09:17:32 UTC (rev 2880)
@@ -1105,31 +1105,7 @@
 		   }	
 		}
 	  }
-	  
-		function createOlObjFromWMS($base){
-		 	if(!$this->wms_title || $this->wms_title == ""){
-				echo "alert('Error: no valid capabilities-document !!');";
-				die; exit;
-			}
-			// wms_title and abstract have previously been urlencoded
-			// this solution may not yet be the ultimate one
 			
-			$add_wms_string = "var wms_".$this->wms_id." = new OpenLayers.Layer.WMS.Untiled(" .
-					"'" . addslashes($this->wms_title) . "'," .
-					"'" . $this->wms_getmap ."'," ."{layers:'";
-					for($i=0;$i<count($this->objLayer);$i++){
-						$add_wms_string .= addslashes($this->objLayer[$i]->layer_name);
-						if($i!=count($this->objLayer)-1)
-							$add_wms_string .= ",";
-					}
-					$add_wms_string .= "', transparent: 'true'";
-					$add_wms_string .= ",format: '".$this->gui_wms_mapformat."'});\n";
-					if($base)
-						$add_wms_string .= 	"wms_".$this->wms_id.".isBaseLayer=true;\n";
-					$add_wms_string .= 	"wms_".$this->wms_id.".setVisibility(".($this->gui_wms_visible=="1"?"true":"false").");\n";
-					$add_wms_string .= "ol_map.addLayer(wms_".$this->wms_id.");\n";
-			echo $add_wms_string;
-	  }
 	  
 	/**
 	* writeObjInDB



More information about the Mapbender_commits mailing list