[mapguide-trac] #1012: Expand/collapse layer or group in legend by
layerName (API Viewer legend)
MapGuide Open Source
trac_mapguide at osgeo.org
Fri Jun 5 07:57:41 EDT 2009
#1012: Expand/collapse layer or group in legend by layerName (API Viewer legend)
---------------------------+------------------------------------------------
Reporter: lgoubet | Owner:
Type: enhancement | Status: new
Priority: medium | Milestone:
Component: Viewer API | Version: 2.0.2
Severity: trivial | Keywords: expand
External_id: |
---------------------------+------------------------------------------------
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
--
Ticket URL: <http://trac.osgeo.org/mapguide/ticket/1012>
MapGuide Open Source <http://mapguide.osgeo.org/>
MapGuide Open Source Internals
More information about the mapguide-trac
mailing list