Opened 15 years ago

Closed 12 years ago

#370 closed defect (fixed)

Legend does not clear oActiveLayer when clicked off

Reported by: pdeschamps Owned by: madair
Priority: P2 Milestone: Future
Component: Widgets Version: 1.1.1
Severity: Minor Keywords:
Cc: Browser: All
External ID: Operating System: All
state: New

Description

It looks as though we are not catching the toggle state of a legend item.

When you click on a layer in the legend and then click it again it should set this.getMap().oActiveLayer to null. It looks as though that it does not have a case for that. in legend.js

        this.selection = new Jx.Selection({
            onSelect: function(item) {
                var treeItem = item.retrieve('jxTreeItem');
                var data = treeItem.options.data
                if (data instanceof Fusion.Layers.Group) {
                    this.getMap().setActiveLayer(null);
                } else {
                    this.getMap().setActiveLayer(data);
                }
            }.bind(this)
        });

Change History (1)

comment:1 by jng, 12 years ago

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