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?



_______________________________________________
Users mailing list
[email protected]
http://www.geoext.org/cgi-bin/mailman/listinfo/users

Reply via email to