<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv=Content-Type content="text/html; charset=us-ascii">
<meta name=Generator content="Microsoft Word 12 (filtered medium)">
<style>
<!--
/* Font Definitions */
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri","sans-serif";}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
span.EmailStyle17
        {mso-style-type:personal-compose;
        font-family:"Calibri","sans-serif";
        color:windowtext;}
.MsoChpDefault
        {mso-style-type:export-only;}
@page Section1
        {size:8.5in 11.0in;
        margin:1.0in 1.0in 1.0in 1.0in;}
div.Section1
        {page:Section1;}
-->
</style>
<!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
</head>
<body lang=EN-US link=blue vlink=purple>
<div class=Section1>
<p class=MsoNormal>Thanks to the examples and previous forum posts I almost
have my layer tree looking exactly as I would like.<o:p></o:p></p>
<p class=MsoNormal><o:p> </o:p></p>
<p class=MsoNormal>What I haven’t been able to figure out is under a
layer check box, (in this case Schools), I would like to display icons and text
that would correspond to map symbology for different types of features in
the given layer. I do not get anything displayed under the check box and
have been unsuccessful in finding a solution.<o:p></o:p></p>
<p class=MsoNormal> Any pointers or examples on how to accomplish that
would be appreciated.<o:p></o:p></p>
<p class=MsoNormal><o:p> </o:p></p>
<p class=MsoNormal>I am pulling my layers from a group layer similar to Tasmania
( Group Layer) in the Tree Nodes example.<o:p></o:p></p>
<p class=MsoNormal><o:p> </o:p></p>
<p class=MsoNormal>Here is my json:<o:p></o:p></p>
<p class=MsoNormal><o:p> </o:p></p>
<p class=MsoNormal>var treeConfig = new OpenLayers.Format.JSON().write([<o:p></o:p></p>
<p class=MsoNormal> {<o:p></o:p></p>
<p class=MsoNormal> nodeType: "gx_baselayercontainer",<o:p></o:p></p>
<p class=MsoNormal> layer: 'Layers',<o:p></o:p></p>
<p class=MsoNormal> isLeaf : false,<o:p></o:p></p>
<p class=MsoNormal> loader: {<o:p></o:p></p>
<p class=MsoNormal> param:
"LAYERS"<o:p></o:p></p>
<p class=MsoNormal> }<o:p></o:p></p>
<p class=MsoNormal> },{<o:p></o:p></p>
<p class=MsoNormal> text: 'School Layers',<o:p></o:p></p>
<p class=MsoNormal> expanded: true,<o:p></o:p></p>
<p class=MsoNormal> children: [{<o:p></o:p></p>
<p class=MsoNormal> nodeType: "gx_layerparam",<o:p></o:p></p>
<p class=MsoNormal> layer: 'Schools',<o:p></o:p></p>
<p class=MsoNormal> param: "LAYERS",<o:p></o:p></p>
<p class=MsoNormal> item: "catawba2:schools",<o:p></o:p></p>
<p class=MsoNormal> text: 'Schools',<o:p></o:p></p>
<p class=MsoNormal> expanded: true,<o:p></o:p></p>
<p class=MsoNormal> children: [{ //
under the Schools check box I want to display symbols and text that correspond<o:p></o:p></p>
<p class=MsoNormal> text: 'Elementary Schools', //
to the symbology that I use on the map<o:p></o:p></p>
<p class=MsoNormal> IconCls: 'cc_elem' //
nothing displays<o:p></o:p></p>
<p class=MsoNormal> },{ //
how can I add symbols and text here?<o:p></o:p></p>
<p class=MsoNormal> text: 'Middle School Districts3', //
I don’t even know if using children: [{}] is the correct approach.<o:p></o:p></p>
<p class=MsoNormal> iconCls: 'cc_middle'<o:p></o:p></p>
<p class=MsoNormal> }]<o:p></o:p></p>
<p class=MsoNormal>},{<o:p></o:p></p>
<p class=MsoNormal>nodeType: "gx_layerparam",<o:p></o:p></p>
<p class=MsoNormal>layer: 'Schools',<o:p></o:p></p>
<p class=MsoNormal>param: "LAYERS",<o:p></o:p></p>
<p class=MsoNormal>item: "catawba2:elementary_school_districts",<o:p></o:p></p>
<p class=MsoNormal>text: 'Elementary School Districts',<o:p></o:p></p>
<p class=MsoNormal>iconCls: 'cc_elem_line',<o:p></o:p></p>
<p class=MsoNormal>}]<o:p></o:p></p>
<p class=MsoNormal> }], true);<o:p></o:p></p>
<p class=MsoNormal><o:p> </o:p></p>
</div>
</body>
</html>