[Users] Help with layer tree and radio buttons

Dan Ramage dan at inlet.geol.sc.edu
Tue Oct 27 17:14:09 CET 2009


All,

 

I'd like to implement a layer tree that makes use of the check box to turn
on the layer and the radio button to allow the layer to be queried.

I've been looking over the
http://dev.geoext.org/trunk/geoext/examples/tree.js example, however I am
just not following how it works at all.

I understand that the JSON is used to configure the layer tree, however I do
not understand how most of the nodes get added.

For instance, in the treeConfig variable, the first entry is: nodeType:
"gx_baselayercontainer" and from the documentation I see that 
gx_baselayercontainer will place all the base layer layers in that node. 
 
The second entry of: 
nodeType: "gx_overlaylayercontainer",
expanded: true,
loader: {
  baseAttrs: {radioGroup: "foo"}
 }
is where I cannot follow. I don't see how that relates to the layers that
end up in the "Overlays" node.
Can someone explain how this works? I might be missing something
fundamental, but I am lost at the moment.
 
Thanks for the help.
 
 
Dan
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.geoext.org/pipermail/users/attachments/20091027/34206d90/attachment.htm 


More information about the Users mailing list