Thomas, please provide the full example (including map and everything, preferably something that I can run when dropping it in the examples directory of my local checkout).
Thanks, Andreas. On Tue, May 22, 2012 at 11:42 AM, Thomas Colley <[email protected]> wrote: > 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? > > > -- Andreas Hocevar OpenGeo - http://opengeo.org/ Expert service straight from the developers. _______________________________________________ Users mailing list [email protected] http://www.geoext.org/cgi-bin/mailman/listinfo/users
