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

svn_mapbender at osgeo.org svn_mapbender at osgeo.org
Tue Feb 10 10:54:07 EST 2009


Author: christoph
Date: 2009-02-10 10:54:07 -0500 (Tue, 10 Feb 2009)
New Revision: 3525

Modified:
   trunk/mapbender/http/classes/class_wmc.php
   trunk/mapbender/http/classes/class_wmcToXml.php
Log:
addded selectability

Modified: trunk/mapbender/http/classes/class_wmc.php
===================================================================
--- trunk/mapbender/http/classes/class_wmc.php	2009-02-10 15:53:26 UTC (rev 3524)
+++ trunk/mapbender/http/classes/class_wmc.php	2009-02-10 15:54:07 UTC (rev 3525)
@@ -1007,7 +1007,7 @@
 			$wms->objLayer[0]->layer_maxscale = 0;
 			$wms->objLayer[0]->gui_layer_wms_id = $currentLayer["extension"]["WMS_ID"];
 			$wms->objLayer[0]->gui_layer_status = 1;
-			$wms->objLayer[0]->gui_layer_selectable = 1; 
+			$wms->objLayer[0]->gui_layer_selectable = $currentLayer["extension"]["WMS_SELECTABLE"];
 			$wms->objLayer[0]->gui_layer_visible = 1;
 			$wms->objLayer[0]->gui_layer_queryable = 0;
 			$wms->objLayer[0]->gui_layer_querylayer = 0;

Modified: trunk/mapbender/http/classes/class_wmcToXml.php
===================================================================
--- trunk/mapbender/http/classes/class_wmcToXml.php	2009-02-10 15:53:26 UTC (rev 3524)
+++ trunk/mapbender/http/classes/class_wmcToXml.php	2009-02-10 15:54:07 UTC (rev 3525)
@@ -400,6 +400,7 @@
 		$layerExtensionData["gui_maxscale"] = $currentLayer->gui_layer_maxscale;
 		$layerExtensionData["layer_id"] = $currentLayer->layer_uid;
 		$layerExtensionData["wms_layer_id"] = $currentWms->objLayer[0]->layer_uid;
+		$layerExtensionData["wms_selectable"] = $currentWms->objLayer[0]->gui_layer_selectable;
 		$layerExtensionData["layer_pos"] = $currentLayer->layer_pos;
 		$layerExtensionData["layer_parent"] = $currentLayer->layer_parent;
 		$layerExtensionData["wms_id"] = $currentLayer->gui_layer_wms_id;
@@ -416,7 +417,7 @@
 			$layerExtensionData["wfsFeatureType"] = $currentLayer->gui_layer_wfs_featuretype;
 		}
 
-		if (1 == 0 && count($layerExtensionData) > 0) {
+		if (count($layerExtensionData) > 0) {
 			$e_extension = $this->doc->createElement("Extension");
 			
 			foreach ($layerExtensionData as $keyExtensionData => $valueExtensionData) {



More information about the Mapbender_commits mailing list