[Commits] r2222 - core/trunk/geoext/lib/GeoExt/widgets/tree

commits at geoext.org commits at geoext.org
Tue Jun 1 19:02:22 CEST 2010


Author: ahocevar
Date: 2010-06-01 19:02:21 +0200 (Tue, 01 Jun 2010)
New Revision: 2222

Modified:
   core/trunk/geoext/lib/GeoExt/widgets/tree/LayerNode.js
Log:
do not enforceOneVisible for "real" base layers. r=tschaub (closes #283)

Modified: core/trunk/geoext/lib/GeoExt/widgets/tree/LayerNode.js
===================================================================
--- core/trunk/geoext/lib/GeoExt/widgets/tree/LayerNode.js	2010-06-01 14:57:02 UTC (rev 2221)
+++ core/trunk/geoext/lib/GeoExt/widgets/tree/LayerNode.js	2010-06-01 17:02:21 UTC (rev 2222)
@@ -73,7 +73,9 @@
     enforceOneVisible: function() {
         var attributes = this.node.attributes;
         var group = attributes.checkedGroup;
-        if(group) {
+        // If we are in the baselayer group, the map will take care of
+        // enforcing visibility.
+        if(group && group !== "gx_baselayer") {
             var layer = this.node.layer;
             var checkedNodes = this.node.getOwnerTree().getChecked();
             var checkedCount = 0;



More information about the Commits mailing list