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

Paul james pauljame at gmail.com
Fri Feb 19 13:57:57 CET 2010


The patch worked fine for me!

Thanks Bart!

Paul

On Thu, Feb 18, 2010 at 10:40 AM, Paul james <pauljame at gmail.com> wrote:

> Thanks Bart...
>
> I´ll wait for that!
>
> Paul
>
>
> On Thu, Feb 18, 2010 at 10:18 AM, <bartvde at osgis.nl> wrote:
>
>> 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
>> >
>>
>>
>>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.geoext.org/pipermail/users/attachments/20100219/5fa1aa3d/attachment.htm 


More information about the Users mailing list