[Mapbender-commits] r2740 - branches/dev_lenkne/lib

svn_mapbender at osgeo.org svn_mapbender at osgeo.org
Tue Aug 5 11:35:03 EDT 2008


Author: lenkne
Date: 2008-08-05 11:35:03 -0400 (Tue, 05 Aug 2008)
New Revision: 2740

Modified:
   branches/dev_lenkne/lib/core.js
Log:


Modified: branches/dev_lenkne/lib/core.js
===================================================================
--- branches/dev_lenkne/lib/core.js	2008-08-05 11:54:58 UTC (rev 2739)
+++ branches/dev_lenkne/lib/core.js	2008-08-05 15:35:03 UTC (rev 2740)
@@ -36,54 +36,6 @@
  * Triggered before a feature info is requested.
  */
 var eventBeforeFeatureInfo = new MapbenderEvent();
-eventBeforeFeatureInfo.register(function() {
-	for (var j=0; j<mb_mapObj.length; j++) {
-		var mapObj = mb_mapObj[j];
-
-		//
-		// set list of visible layers, active querylayers 
-		// and styles for each WMS in this map
-		//
-		
-		var cnt_layers;
-		var cnt_querylayers;
-		var styles;
-		var layers;
-		var querylayers = "";
-		for(i=0; i< mapObj.wms.length; i++){
-			cnt_layers = 0;
-			cnt_querylayers = 0;
-			styles = "";
-			layers = "";
-			querylayers = "";
-	
-			for(var ii=0; ii<mapObj.wms[i].objLayer.length; ii++){
-				// layer is visible and not root layer
-				if(mapObj.wms[i].objLayer[ii].gui_layer_visible == 1 && ii>0){
-					if(cnt_layers > 0){
-						layers += ","; styles += ","; 
-					}
-					layers += wms[i].objLayer[ii].layer_name; 
-					styles += ""; 
-					cnt_layers++;
-				}            
-				// layer is queryable and not root layer
-				if(mapObj.wms[i].objLayer[ii].gui_layer_querylayer == 1 && ii>0){
-					if(cnt_querylayers > 0){
-						querylayers += ",";
-					}
-					querylayers += wms[i].objLayer[ii].layer_name; 
-					cnt_querylayers++;
-				}                          
-			}
-			mapObj.layers[i] = layers;
-			mapObj.styles[i] = styles;
-			mapObj.querylayers[i] = querylayers;
-		}
-		
-	}
-	
-});
 /**
  * Triggered after a WMS has been loaded.
  */
@@ -245,4 +197,4 @@
   else if(!frameName || frameName === ""){
        document.getElementById(elName).innerHTML = tagSource;
   }
-}
\ No newline at end of file
+}



More information about the Mapbender_commits mailing list