[Users] treePanel (more questions)

Stefanie Weykam stefanie at weykam.net
Fri Nov 12 10:02:00 CET 2010

Thank you so much to all of you. Your comments have been of great help. 
Now I’ve got everthing in place. Well almost..

So far I’ve got my tree populated with groups and even a subgroup, 
several groupless layers and I have also recovered my graticule layer 
Just for curiosity: It doesn’t seem to be necessary to apply a loader 
for base layers in a baseLayerContainer. I assume that layers with 
‘isBaselayer’ set to true will be automatically loaded here?

Now, how can I add a checkbox to the group node? The objective is to 
turn all child nodes on and off at once. Such as if this was a layer 
group (gx_layer), except that these children aren’t necessarily layers 
with a common URL. Can this somehow be achieved by modifying a layerNode 
or rather by modifying the layerContainer?

I’m also considering adding radio buttons to those layers which are 
queryable. They would share the same checkedGroup, no matter which group 
they belong to. I already have layer properties for my WMS layers that 
could be used for the distinction (queryable: true, infoFormat: ..).
But then I had to add some space to those layers which are not 
queryable, to keep everything nice and aligned in the tree. Achieving a 
perfect alignment in any browser could be awesome. I wonder if this is a 
lot of fuzz.
The alternative is to place a query tool with a selection list somewhere 
in a bar. This also might be the user friendlier solution.

I would highly appreciate your opinion.
Best regards,
Stefanie Weykam

More information about the Users mailing list