Opened 9 years ago

Closed 5 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)

GgExpandLegendByName.patch (3.2 KB) - added by lgoubet 9 years ago.

Download all attachments as: .zip

Change History (6)

Changed 9 years ago by lgoubet

Attachment: GgExpandLegendByName.patch added

comment:1 Changed 8 years ago by jbirch

Version: 2.0.2

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.

comment:2 Changed 6 years ago by jng

Keywords: haspatch added

comment:3 Changed 6 years ago by jng

Milestone: 2.4

comment:4 Changed 5 years ago by jng

Milestone: 2.4

comment:5 Changed 5 years ago by jng

Resolution: fixed
Status: newclosed

Fixed r7139

Note: See TracTickets for help on using tickets.