Thanks to the examples and previous forum posts I almost have my layer
tree looking exactly as I would like.
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.
Any pointers or examples on how to accomplish that would be
appreciated.
I am pulling my layers from a group layer similar to Tasmania ( Group
Layer) in the Tree Nodes example.
Here is my json:
var treeConfig = new OpenLayers.Format.JSON().write([
{
nodeType: "gx_baselayercontainer",
layer: 'Layers',
isLeaf : false,
loader: {
param: "LAYERS"
}
},{
text: 'School Layers',
expanded: true,
children: [{
nodeType: "gx_layerparam",
layer: 'Schools',
param: "LAYERS",
item: "catawba2:schools",
text: 'Schools',
expanded: true,
children: [{ //
under the Schools check box I want to display symbols and text that
correspond
text: 'Elementary Schools', // to the symbology
that I use on the map
IconCls: 'cc_elem' // nothing
displays
},{
// how can I add symbols and text here?
text: 'Middle School Districts3', // I don't even know
if using children: [{}] is the correct approach.
iconCls: 'cc_middle'
}]
},{
nodeType: "gx_layerparam",
layer: 'Schools',
param: "LAYERS",
item: "catawba2:elementary_school_districts",
text: 'Elementary School Districts',
iconCls: 'cc_elem_line',
}]
}], true);
_______________________________________________
Users mailing list
[email protected]
http://www.geoext.org/cgi-bin/mailman/listinfo/users