[fusion-commits] r1440 - trunk/widgets

svn_fusion at osgeo.org svn_fusion at osgeo.org
Thu Jul 17 13:35:10 EDT 2008


Author: madair
Date: 2008-07-17 13:35:09 -0400 (Thu, 17 Jul 2008)
New Revision: 1440

Modified:
   trunk/widgets/Legend.js
Log:
re #90: don't update a group and it's layers if it is not displayed in the legend

Modified: trunk/widgets/Legend.js
===================================================================
--- trunk/widgets/Legend.js	2008-07-14 18:51:22 UTC (rev 1439)
+++ trunk/widgets/Legend.js	2008-07-17 17:35:09 UTC (rev 1440)
@@ -325,6 +325,9 @@
         }
     },
     updateGroupLayers: function(group, fScale) {
+        if (!group.displayInLegend) {
+            return;
+        }
         for (var i=0; i<group.groups.length; i++) {
             this.updateGroupLayers(group.groups[i], fScale);
         }



More information about the fusion-commits mailing list