Hi,
I am receiving the following error while trying to display legend graphic in
LayerContainer of Tree.
this.addEvents is not a function
"load"
The code that I am trying with is:
var mloader = GeoExt.tree.LayerLoader(
{
createNode: function(attr)
{
attr.iconCls =
this.store.getById(attr.layer.id).get('icon');
GeoExt.tree.LayerLoader.prototype.createNode.call(this,
attr);
}
}
);
var layerCon = new GeoExt.tree.LayerContainer(
{
text: "Layers",
layerStore: mapPanel.layers,
loader: mloader,
expanded: true
}
);
Can somebody point me out what I am doing wrong?
I have also looked at these mail threads but could'nt figure out problem in my
code:
1. http://www.mail-archive.com/[email protected]/msg00392.html
2. http://www.mail-archive.com/[email protected]/msg00336.html
Any help is appreciated.
Thank you,
--
Jehanzeb
_______________________________________________
Users mailing list
[email protected]
http://www.geoext.org/cgi-bin/mailman/listinfo/users