Opened 15 years ago
Closed 12 years ago
#1012 closed enhancement (fixed)
Expand/collapse layer or group in legend by layerName (API Viewer legend)
Reported by: | lgoubet | Owned by: | |
---|---|---|---|
Priority: | medium | Milestone: | |
Component: | Viewer API | Version: | |
Severity: | trivial | Keywords: | expand, haspatch |
Cc: | lgoubet@… | External ID: |
Description
Hi,
I added two public functions in the file legendctrl.templ for expand or collapse a layer or group in legend viewer.
function ExpandLayerInLegend(expandInLegend,layerName) function ExpandGroupInLegend(expandInLegend,groupName) expandInLegend is a boolean
Moreover, for this, I added 6 functions:
function ExpandLayerInLegend(expandInLegend,layerName) function ExpandGroupInLegend(expandInLegend,groupName)
function FindGroupByName(nodes, groupName) function FindLayerByName(nodes, layerName)
if expandInLegend==true => node group and all parents of this group are expanded if expandInLegend==false => only node group is collapsed function ExpandAllGroupParentInLegend(expandInLegend,node) function GetGroupByLayer(layerName)
Thanks
Attachments (1)
Change History (6)
by , 15 years ago
Attachment: | GgExpandLegendByName.patch added |
---|
comment:1 by , 15 years ago
Version: | 2.0.2 |
---|
comment:2 by , 13 years ago
Keywords: | haspatch added |
---|
comment:3 by , 12 years ago
Milestone: | → 2.4 |
---|
comment:4 by , 12 years ago
Milestone: | 2.4 |
---|
Removing version from enhancement request. If this enhancement request has been addressed or is no longer required, please close ticket. If you still want it addressed, the patch should be tested against 2.1, and you need to ask for review/discussion on mapguide-internals.