See --> here <-- mark inline :-) Andreas.
On Mon, Jan 23, 2012 at 8:07 PM, karsten <kars...@terragis.net> wrote: > Thanks for the hint. > > I tried to configure this correctly but I am still not sure where the > baseParmas need to be added because I have a tree instead of a stand alone > legend ... Below is my code - any hints where I need to put the baseparams > to make it work - I tried multiple different configurations wihout > success... > > tree = new Ext.tree.TreePanel({ > title: "Capas Mapa", > id: 'TreePanel', > useArrows: true, > animate: true, > autoScroll: true, > enableDD: true, > collapsed: false, > collapsible: true, > // apply the tree node component plugin to layer nodes > plugins: [{ > ptype: "gx_treenodecomponent" > }], > loader: { > applyLoader: false, > uiProviders: { > "custom_ui": LayerNodeUI > } > }, > root: { > expand: true, > children: [{ > nodeType: "gx_baselayercontainer", > text: 'Capas Bascios', > expanded: false > }, { > nodeType: "gx_overlaylayercontainer", > text: 'Capas Mapa', > expanded: true, > loader: { > baseAttrs: { > uiProvider: "custom_ui" > }, > createNode: function (attr) { > // add a WMS legend to each node created > if > (GeoExt.WMSLegend.supports(mapPanel.layers.getByLayer(attr.layer))) { > attr.component = { > xtype: "gx_wmslegend", ---> here <--- > layerRecord: > mapPanel.layers.getByLayer(attr.layer), > showTitle: false, > // custom class for css positioning > // see tree-legend.html > cls: "legend" > }; > > } > return > GeoExt.tree.LayerLoader.prototype.createNode.call(this, attr); > } > } > }] > }, > rootVisible: false, > lines: false //, > // expand: true, > }); > > > > > > > ======= > Email scanned by PC Tools - No viruses or spyware found. > (Email Guard: 9.0.0.888, Virus/Spyware Database: 6.19110) > http://www.pctools.com/ > ======= > _______________________________________________ > Users mailing list > Users@geoext.org > http://www.geoext.org/cgi-bin/mailman/listinfo/users -- Andreas Hocevar OpenGeo - http://opengeo.org/ Expert service straight from the developers. _______________________________________________ Users mailing list Users@geoext.org http://www.geoext.org/cgi-bin/mailman/listinfo/users