[fusion-commits] r1712 - trunk/widgets
svn_fusion at osgeo.org
svn_fusion at osgeo.org
Thu Dec 11 16:45:16 EST 2008
Author: pagameba
Date: 2008-12-11 16:45:16 -0500 (Thu, 11 Dec 2008)
New Revision: 1712
Modified:
trunk/widgets/Legend.js
Log:
Fixes #188. Don't force top level groups to be visible, it interferes with the initial visibility coming from the map server on the back end.
Modified: trunk/widgets/Legend.js
===================================================================
--- trunk/widgets/Legend.js 2008-12-11 21:30:24 UTC (rev 1711)
+++ trunk/widgets/Legend.js 2008-12-11 21:45:16 UTC (rev 1712)
@@ -387,7 +387,7 @@
startGroup.legend.treeItem = this.oRoot;
}
for (var i=0; i<startGroup.groups.length; i++) {
- startGroup.groups[i].visible = true;
+ //startGroup.groups[i].visible = true;
this.processMapGroup(startGroup.groups[i], this.oRoot);
}
for (var i=0; i<startGroup.layers.length; i++) {
@@ -643,8 +643,7 @@
}
var item = new Jx.TreeItem(opt);
- item.contextMenu = this.getContextMenu(item); //layer.parentGroup.legend.treeItem);
- if (bCheckBox) {
+ item.contextMenu = this.getContextMenu(item); if (bCheckBox) {
//item.domObj.insertBefore(layer.legend.checkBox, item.domObj.childNodes[1]);
/* only need to add layer info if it has a check box too */
var layerInfo = layer.oMap.getLayerInfoUrl(layer.layerName);
More information about the fusion-commits
mailing list