[fusion-commits] r2110 - branches/fusion-2.0/widgets

svn_fusion at osgeo.org svn_fusion at osgeo.org
Thu Mar 25 10:38:31 EDT 2010


Author: madair
Date: 2010-03-25 10:38:30 -0400 (Thu, 25 Mar 2010)
New Revision: 2110

Modified:
   branches/fusion-2.0/widgets/Legend.js
Log:
re #306: applying changeset 2108

Modified: branches/fusion-2.0/widgets/Legend.js
===================================================================
--- branches/fusion-2.0/widgets/Legend.js	2010-03-25 08:23:34 UTC (rev 2109)
+++ branches/fusion-2.0/widgets/Legend.js	2010-03-25 14:38:30 UTC (rev 2110)
@@ -633,7 +633,7 @@
             }
             if (checkbox) {
               layer.legend.treeItem.checkBox.checked = layer.visible?true:false;
-              if (layer.layerTypes[0] == 4 || range.styles.length > 0) {
+              if (layer.layerTypes[0] == 4 || layer.layerTypes[0] == 5 || range.styles.length > 0) {
                 layer.legend.treeItem.checkBox.disabled = false;
               } else {
                 layer.legend.treeItem.checkBox.disabled = true;
@@ -728,13 +728,13 @@
             }
         }
         // MapGuide DWF and Raster layer
-        if (layer.layerTypes[0] == 4) {
-            if (style && style.staticIcon == Fusion.Constant.LAYER_DWF_TYPE) {
-                opt.image = this.imgLayerDWFIcon;
-            } else {
-                opt.image = this.imgLayerRasterIcon;
-            }
+         // MapGuide Raster and DWF layer 
+        if(layer.layerTypes[0] == 4){
+            opt.image = this.imgLayerRasterIcon;
             opt.enabled = true;
+        } else if(layer.layerTypes[0] == 5){
+            opt.image = this.imgLayerDWFIcon;
+            opt.enabled = true;
         }
         opt.contextMenu = this.getContextMenu();
 



More information about the fusion-commits mailing list