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)

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

Download all attachments as: .zip

Change History (6)

by lgoubet, 15 years ago

Attachment: GgExpandLegendByName.patch added

comment:1 by jbirch, 15 years ago

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 by jng, 13 years ago

Keywords: haspatch added

comment:3 by jng, 12 years ago

Milestone: 2.4

comment:4 by jng, 12 years ago

Milestone: 2.4

comment:5 by jng, 12 years ago

Resolution: fixed
Status: newclosed

Fixed r7139

Note: See TracTickets for help on using tickets.