[Users] Associate 2 sublayers in a single Geoext Treeview Item...

bartvde at osgis.nl bartvde at osgis.nl
Thu Feb 18 14:18:26 CET 2010


Paul,

that's a bug in WMSLegend. See:

http://trac.geoext.org/ticket/226#preview

for details, still needs to be fixed though.

Best regards,
Bart

> Andreas, today I noticed one wrong thing with that implementation...
> My GeoExt.LegendPanel is not showing the item anymore... Is that a
> solution
> to that?
>
> Thanks
>
> Paul
>
> On Tue, Feb 9, 2010 at 4:46 PM, Paul james <pauljame at gmail.com> wrote:
>
>> Thats It Andreas!
>> Thanks...
>>
>> Paul
>>
>> On Tue, Feb 9, 2010 at 4:37 PM, Andreas Hocevar
>> <ahocevar at opengeo.org>wrote:
>>
>>> Paul james wrote:
>>>
>>>> Hello guys...
>>>>  Is it possible to associate 2 layers in a single Treeview Item ?
>>>>
>>>
>>> You mean you want e.g. l1,l2 in one sub-item and l3,l4 in another? Here
>>> you go:
>>>
>>>
>>> Example: I have that layer (using SUBLAYERS)
>>>>  var _test = new OpenLayers.Layer.WMS("TEST",
>>>>                _mapfile, {
>>>> "LAYERS":
>>>> ['l1', 'l2', 'l3', 'l4'],
>>>>
>>>
>>> Replace the above line with:
>>>
>>>
>>>                   "LAYERS": ['l1,l2', 'l3,l4'],
>>>
>>>                     transparent: true,
>>>>                     format: "image/png"
>>>>                }, {
>>>>                    isBaseLayer: false,
>>>>    buffer: 0,
>>>>                    visibility: true
>>>> });
>>>>  My treeview:
>>>> ...
>>>> text: "TEST",                                    expanded: true,
>>>>                    children: [
>>>>                    {
>>>>                        nodeType: "gx_layerparam",
>>>>                    layer: "TEST",
>>>>                        param: "LAYERS",
>>>>                        item: "l1",
>>>>
>>>
>>>                       item: "l1,l2",
>>>
>>>
>>>                        text: "test layer",
>>>>                        checked: true,
>>>>                        uiProvider: ...
>>>>                    }
>>>> ...
>>>>
>>>>
>>>
>>> Regards,
>>> Andreas.
>>>
>>> --
>>> Andreas Hocevar
>>> OpenGeo - http://opengeo.org/
>>> Expert service straight from the developers.
>>>
>>>
>>
> _______________________________________________
> Users mailing list
> Users at geoext.org
> http://www.geoext.org/cgi-bin/mailman/listinfo/users
>




More information about the Users mailing list