Opened 17 years ago
Closed 16 years ago
#80 closed defect (fixed)
(Un-)Checking Group in Legend (Un-)Checks All Contained Layers
Reported by: | schneiderei | Owned by: | madair |
---|---|---|---|
Priority: | P2 | Milestone: | 2.0 |
Component: | Widgets | Version: | 1.0.6 |
Severity: | Major | Keywords: | |
Cc: | Browser: | All | |
External ID: | Operating System: | All | |
state: | New |
Description
When a group layer is checked (or unchecked) in the legend, all map layers the group contains are checked (or unchecked, respectively). This behaviour is not what the user expects. If the user, for instance, unchecks a group, all layer it contains should be hidden from the map. If the user checks the group again, the layers that were visible before unchecking -- and only these -- should become visible on the map again. Checking and unchecking a group should not change the visibility status of the layers it contains. Instead, the visibility status of the group should simply override the status of the layers.
I suspect that the problem only occurs when using MapServer. In the functions showGroup() and hideGroup() in MapServer/MapServer.js, there are the following lines:
-- in showGroup():
for (var i=0; i<group.layers.length; ++i) {
group.layers[i].show();
}
-- in hideGroup();
for (var i=0; i<group.layers.length; ++i) {
group.layers[i].hide();
}
I believe that these lines can be deleted.
Change History (2)
comment:1 by , 16 years ago
Component: | MapServer → Widgets |
---|---|
Milestone: | 1.1 → 2.0 |
Type: | enhancement → defect |
comment:2 by , 16 years ago
Resolution: | → fixed |
---|---|
Status: | new → closed |
closing; this was fixed as part of another ticket
this should be looked at in conjunction with #98