[Users] Layer group with legend
Alexandre Dube
adube at mapgears.com
Tue Oct 19 14:15:03 CEST 2010
Hi Andreas,
Thanks for your reply. I little more detail wouldn't hurt if it's
not asking for too much.
Also, I'd like to add one thing in my tree : groups. I already have
the name of the group each server-side layer has and I'd like to add a
level of nodes for that :
[x] Group1
[x] Layer1
(img) Class1
(img) Class2
[x] Layer2
(img) Class1
[ ] Group2
[ ] Layer3
[ ] Layer4
[x] Layer5
and so on using one single OpenLayers.Layer.WMS object. Is that
possible too ?
Thanks,
Alexandre
On 10-10-18 04:53 PM, Andreas Hocevar wrote:
> Hi Alexandre,
>
> this is definitely possible. All you need to do is configure your LayerParamLoader with a custom createNode function that creates an appropriate LayerLegend instance. Pretty much the same as in the tree-legend.html example.
>
> Does this answer your question or do you need more details?
>
> Regards,
> Andreas.
>
> On Oct 18, 2010, at 22:02 , Alexandre Dube wrote:
>
>
>> Hi,
>>
>> Is it possible to use a "group layer" as shown in this example [1]
>> with each "param/layer" generated node having its own "legend" node [2]
>> ? I would like to have one OpenLayers.WMS object in the end. Is that
>> possible with the current GeoExt legend and tree features available ?
>>
>> Thanks,
>>
>> [1] http://api.geoext.org/1.0/examples/tree.html
>> [2] http://api.geoext.org/1.0/examples/tree-legend.html
>>
>> --
>> Alexandre Dubé
>> Mapgears
>> www.mapgears.com
>>
>> _______________________________________________
>> Users mailing list
>> Users at geoext.org
>> http://www.geoext.org/cgi-bin/mailman/listinfo/users
>>
>
>
>
--
Alexandre Dubé
Mapgears
www.mapgears.com
More information about the Users
mailing list