[Users] GeoExt Legend Tree , child node expanded

Thomas Colley it087 at neath-porttalbot.gov.uk
Tue May 22 11:42:17 CEST 2012


Hi Andreas

Here is my code. Thanks.

root: {
	nodeType: "gx_layercontainer",
		loader: {
			baseAttrs: {
                    uiProvider: "custom_ui"
                },
                createNode: function(attr) {
                	attr.component = {
                        xtype: "gx_wmslegend",
				baseParams:
{WIDTH:'30',HEIGHT:'30',SCALE:'0'},
                        layerRecord:
mapPanel.layers.getByLayer(attr.layer),
                        showTitle: false
			}
return GeoExt.tree.LayerLoader.prototype.createNode.call(this, attr);
                }
            }
        },
        rootVisible: false,
        lines: false


On Tue, May 22, 2012 at 10:24 AM, Andreas wrote:

> Ah I see now. Well, in the case of Karsten's tilecache layers, the
> legendimage configuration misses the layerRecord configuration, so it
> is not bound to a layers.

> @Thomas: can you provide a minimal example that shows the issue?





More information about the Users mailing list