Hi,<br><br>Is it possible to use gx_legendimage within a tree config? I'd like to just add a single static legend graphic below a layer in the tree. <br>This is what I was unsuccessfully trying.<br><br> var treeConfig = [<br>
<br> { nodeType: "gx_baselayercontainer",<br> text: 'Base Layers',<br> expanded: false,<br> loader: { <br> filter: function(rec) {<br>
return (rec.get("layer").options.group == "baselyrs"); <br> } <br> } <br> },<br> { nodeType: "gx_layercontainer",<br>
text: 'Vector',<br> expanded: true,<br> loader: {<br> filter: function(rec){<br> return (rec.get('layer').options.group == "veclyrs"); <br>
},<br> baseAttrs: {<br> uiProvider: "custom_ui"<br> },<br> createNode: function(attr) {<br> <br> attr.component = {<br>
xtype: "gx_legendimage",<br> defaultImgSrc: "image1.JPG",<br> url: "image1.JPG"<br> }<br> return GeoExt.tree.LayerLoader.prototype.createNode.call(this, attr);<br>
<br> }<br> <br> }<br> }.......More Layers]<br><br>Thanks!<br><br>