[Users] wms getlegend mine type trouble in TreePanel
karsten
karsten at terragis.net
Wed Jan 25 00:49:36 CET 2012
That's what I thought and tried, but I had to upgrade to geoext 1.1 (and
thsu also to ext 3.4.0) to make it work. But then it worked instaly :)
Thanks
Karsten
-----Original Message-----
From: andreas.hocevar at gmail.com [mailto:andreas.hocevar at gmail.com] On Behalf
Of Andreas Hocevar
Sent: Monday, January 23, 2012 12:45 PM
To: karsten at terragis.net
Cc: users at geoext.org
Subject: Re: [Users] wms getlegend mine type trouble in TreePanel
See --> here <-- mark inline :-)
Andreas.
On Mon, Jan 23, 2012 at 8:07 PM, karsten <karsten at 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 at geoext.org
> http://www.geoext.org/cgi-bin/mailman/listinfo/users
--
Andreas Hocevar
OpenGeo - http://opengeo.org/
Expert service straight from the developers.
=======
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/
=======
=======
Email scanned by PC Tools - No viruses or spyware found.
(Email Guard: 9.0.0.888, Virus/Spyware Database: 6.19120)
http://www.pctools.com/
=======
More information about the Users
mailing list