[Users] Initial radiobutton state

Dan Ramage dan at inlet.geol.sc.edu
Fri Oct 30 21:25:21 CET 2009


I've got a layer tree with the radio buttons to allow me to select which
active layer I want to handle a getfeatureinfo request. I've got an initial
layer that I want the radio button set for when the map loads, however I
cannot figure out how to do it. The one idea I had was to call getRootNode()
on the treePanel, then iterate through the nodes to try and find the layer I
want. I was wondering if perhaps there another approach. I've been playing
around with handling the "insert" event for the treePanel, however when that
is called the node doesn't seem to have any layer information.

Any hints would be greatly appreciated.

Dan



More information about the Users mailing list