[fusion-trac] #376: Fusion Legend Issues

Fusion trac_fusion at osgeo.org
Thu Mar 25 16:01:14 EDT 2010


#376: Fusion Legend Issues
-----------------------+----------------------------------------------------
   Reporter:  bberdel  |       Owner:  madair   
       Type:  defect   |      Status:  new      
   Priority:  P2       |   Milestone:  Future   
  Component:  Widgets  |     Version:  2.0.0-RC1
   Severity:  Major    |    Keywords:           
External_id:           |       State:  New      
    Browser:  All      |          Os:  All      
-----------------------+----------------------------------------------------
 I am getting a couple error in the SVN version using Sheboygan data /
 standard templates or my own templates.  When opening the Map with Two
 Maps (Using one as a base map)  I get ‘LegendLabel’ is null or not an
 object in legend.js (Line 9 in createTreeItem) and the variable style is
 coming in as null.

 1 createTreeItem: function(layer, style, scale, bCheckBox) {
 2        var opt = {};
 3        opt.statusIsDefault = layer.statusDefault;
 4
 5        if (bCheckBox ) {
 6            opt.label = layer.legendLabel == '' ? ' ' :
 layer.legendLabel;
 7            opt.draw = this.renderItemCheckBox;
 8        } else {
 9            opt.label = style.legendLabel == '' ? ' ' :
 style.legendLabel;
             opt.draw = this.renderItem;


 The Base map is also displayed on open even though I have the layer set to
 off and the check box for the layer is also not checked.   So I have to
 check it and then uncheck to turn it off.

 Also the following occurs with one or two maps.

 Clicking on the map name check box also throws an error.

 Line: 1038 of Mapguide.js

 Error: 'this.oLayerOL2' is null or not an object

-- 
Ticket URL: <http://trac.osgeo.org/fusion/ticket/376>
Fusion <http://trac.osgeo.org/fusion>
Fusion is a web-mapping application development framework for MapServer and MapGuide OS.


More information about the fusion-trac mailing list