Opened 15 years ago

Closed 15 years ago

#375 closed defect (duplicate)

Fusion Legend Issues

Reported by: bberdel Owned by: madair
Priority: P2 Milestone: Future
Component: Widgets Version: 2.0.0-RC1
Severity: Major Keywords:
Cc: Browser: All
External ID: Operating System: All
state: New

Description

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

Change History (1)

comment:1 by bberdel, 15 years ago

Resolution: duplicate
Status: newclosed
Note: See TracTickets for help on using tickets.