Opened 14 years ago

Closed 13 years ago

#167 closed defect (fixed)

check mapgroup in legend

Reported by: klement Owned by: madair
Priority: P2 Milestone: 2.0
Component: Widgets Version: 1.1.0
Severity: Major Keywords:
Cc: Browser: All
External ID: Operating System: All
state: New

Description

When check on a group in legend, all layers in group set visible. I suggest in mapserver.js showGroup method show only the checked layers: old: for (var i=0; i<group.layers.length; ++i) {

group.layers[i].show();

}

new code: for (var i=0; i<group.layers.length; ++i) {

if (group.layers[i].legend.checkBox.checked)

group.layers[i].show();

}

Change History (1)

comment:1 by madair, 13 years ago

Resolution: fixed
Status: newclosed

(In [1755]) closes #167: restore previous state of layers after show/hide of groups in the legend

Note: See TracTickets for help on using tickets.