[fusion-commits] r2913 - in branches/fusion-mg26: . widgets

svn_fusion at osgeo.org svn_fusion at osgeo.org
Thu Jun 4 07:22:34 PDT 2015


Author: jng
Date: 2015-06-04 07:22:34 -0700 (Thu, 04 Jun 2015)
New Revision: 2913

Modified:
   branches/fusion-mg26/
   branches/fusion-mg26/widgets/Legend.js
Log:
Merged revision(s) 2911 from sandbox/adsk/2.6l:
Fix an issue introduced by fix for #631.
The legend of raster layer is disabled after applying hot fix of #631. This issue only happens in AIMS 2015. It is because when creating a legend tree item, it will check if the layer has style in this scale range. If not, the legend will be disabled. But raster layers don't have style in any scale range. So we need to add a check for raster layers.
........



Property changes on: branches/fusion-mg26
___________________________________________________________________
Modified: svn:mergeinfo
   - /branches/fusion-mg24:2560
/sandbox/createruntimemap:2699-2708
/sandbox/jxlib-3.0:1957-2248
/sandbox/ol213:2801-2803
/sandbox/robust_error_handling:2818-2825
/trunk:2847,2850,2857,2859,2862-2863,2872,2877,2880,2882,2884,2893-2897,2899,2905-2908
   + /branches/fusion-mg24:2560
/sandbox/adsk/2.6l:2911
/sandbox/createruntimemap:2699-2708
/sandbox/jxlib-3.0:1957-2248
/sandbox/ol213:2801-2803
/sandbox/robust_error_handling:2818-2825
/trunk:2847,2850,2857,2859,2862-2863,2872,2877,2880,2882,2884,2893-2897,2899,2905-2908

Modified: branches/fusion-mg26/widgets/Legend.js
===================================================================
--- branches/fusion-mg26/widgets/Legend.js	2015-06-04 14:20:45 UTC (rev 2912)
+++ branches/fusion-mg26/widgets/Legend.js	2015-06-04 14:22:34 UTC (rev 2913)
@@ -840,7 +840,15 @@
                 opt.image = layer.oMap.getLegendImageURL(scale, layer, style);
             }
         }
-
+        // MapGuide DWF and Raster layer
+        // 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;
+        }
         var item;
         if (!layer.isBaseMapLayer&&checkbox) {
             // opt.contextMenu = this.getContextMenu();



More information about the fusion-commits mailing list