[Mapbender-commits] r7615 - trunk/mapbender/http/html

svn_mapbender at osgeo.org svn_mapbender at osgeo.org
Wed Feb 16 15:27:51 EST 2011


Author: marc
Date: 2011-02-16 12:27:51 -0800 (Wed, 16 Feb 2011)
New Revision: 7615

Modified:
   trunk/mapbender/http/html/mod_treefolderPlain.php
Log:
#699

Modified: trunk/mapbender/http/html/mod_treefolderPlain.php
===================================================================
--- trunk/mapbender/http/html/mod_treefolderPlain.php	2011-02-16 17:57:18 UTC (rev 7614)
+++ trunk/mapbender/http/html/mod_treefolderPlain.php	2011-02-16 20:27:51 UTC (rev 7615)
@@ -450,7 +450,10 @@
 		return;
 	}
 	for(var wms=0;wms< mb_mapObj[ind].wms.length;wms++){
-		var wmsimgid=mod_treeGDE_map+"_map_"+wms;
+		
+		var lastRequestDiv = $("#"+mod_treeGDE_map+"_maps > div:last" ).attr("id");
+		var wmsimgid=lastRequestDiv+"_map_"+wms;
+		
 		if( mb_mapObj[ind].getDomElement().ownerDocument.getElementById(wmsimgid)){
 			checkComplete(wms, wmsimgid, arrNodes[0][0]+'|wms_'+ mb_mapObj[ind].wms[wms].wms_id, true);
 		}
@@ -696,8 +699,8 @@
 		setSingleMapRequest(mod_treeGDE_map,wms_id);
 		return;
 	}
-	 mb_mapObj[ind].wms[wms].handleLayer(layername,"visible",bChk?"1":"0");
-	 mb_mapObj[ind].wms[wms].handleLayer(layername,"querylayer",bChk?"1":"0");
+	mb_mapObj[ind].wms[wms].handleLayer(layername,"visible",bChk?"1":"0");
+	mb_mapObj[ind].wms[wms].handleLayer(layername,"querylayer",bChk?"1":"0");
 	lock_check=true;
 	checkChildren(path, 0, bChk);
 	if(ficheckbox)checkChildren(path, 1, bChk);



More information about the Mapbender_commits mailing list