[Users] Initial radiobutton state
Andreas Hocevar
ahocevar at opengeo.org
Tue Nov 3 13:31:05 CET 2009
Eric Lemoine wrote:
> On Friday, October 30, 2009, Dan Ramage <dan at inlet.geol.sc.edu> wrote:
>
>> 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 don't see any.
>
> A patch to GeoExt making it possible to set the radio's initial state
> to "checked" would make sense to me. Andreas, or others, any opinion
> on this?
>
Yes, that would make sense. But I would prefer a patch that separates
the LayerNodeUI radio button out to a mixin, so it can be used with any
TreeNodeUI.
Regards,
Andreas.
> Cheers,
>
>
--
Andreas Hocevar
OpenGeo - http://opengeo.org/
Expert service straight from the developers.
More information about the Users
mailing list