Opened 16 years ago
Closed 16 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();
}
Note:
See TracTickets
for help on using tickets.
(In [1755]) closes #167: restore previous state of layers after show/hide of groups in the legend