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

svn_mapbender at osgeo.org svn_mapbender at osgeo.org
Fri Aug 28 08:54:04 EDT 2009


Author: christoph
Date: 2009-08-28 08:54:03 -0400 (Fri, 28 Aug 2009)
New Revision: 4556

Modified:
   trunk/mapbender/http/javascripts/map.js
Log:


Modified: trunk/mapbender/http/javascripts/map.js
===================================================================
--- trunk/mapbender/http/javascripts/map.js	2009-08-28 12:49:13 UTC (rev 4555)
+++ trunk/mapbender/http/javascripts/map.js	2009-08-28 12:54:03 UTC (rev 4556)
@@ -229,6 +229,7 @@
 /**
  * @deprecated
  */
+/*
 function handleSelectedLayer (frameName, wms_title, layerName, type, status) {
 	new Mb_warning("The function handleSelectedLayer is deprecated.");
 	var obj = getMapObjByName(frameName);
@@ -239,7 +240,7 @@
 		}
 	}
 }
-
+*/
 /**
  * @deprecated
  */
@@ -360,3 +361,14 @@
   var extent = new Mapbender.Extent(minx,miny,maxx,maxy);
   map.calculateExtent(extent);
 }
+
+function handleSelectedWms (map, wms_id, type, val) {
+	var ind =  getMapObjIndexByName(map);
+	var wms =  getWMSIndexById(map,wms_id);
+	for (var i = 0; i < mb_mapObj[ind].wms[wms].objLayer.length; i++) {
+	
+		var layername =  mb_mapObj[ind].wms[wms].objLayer[i].layer_name;
+		mb_mapObj[ind].wms[wms].handleLayer(layername,type,val.toString());
+	}
+	mb_restateLayers(map, wms_id);
+}



More information about the Mapbender_commits mailing list