Hi Eric,
I have add radio buttons.
So I think that I need to register a listener if I check one of my radio button
like this one:
listeners: {
"radiochange": function(node){
// alert(node.layer.name + " is now the the active layer.");
node.getattributes();
}
I will take a deeper look at the api. Or do you perhaps have a little example?
Thanks a lot.
best regards
Sarah
________________________________
On Mon, Apr 12, 2010 at 10:10 AM, Sarah Schuessler <[email protected]> wrote:
> Hi list,
>
> is there a best practice for choosing a layer:
> I have different layer and for one of them I want to get attribute data. By
> now I 'choose' my layer with a GeoExt.data.FeatureStore and a
> OpenLayers.Protocol.WFS.
> I would think of either a window, panel,.. that appears if user have clicked
> on a button choosing the right layer with a combobox, .. or take the checked
> radiobutton at tree to make a getfeatureinfo request. Then the attribute
> data appear at a grid.
>
> What`s the best, easiest?
> Anybody has an example page or a hint?
Hi
One option would be to add radio buttons to layer nodes in the layer
tree. See <http://dev.geoext.org/trunk/geoext/examples/tree.html>.
Cheers,
--
Eric Lemoine
Camptocamp France SAS
Savoie Technolac, BP 352
73377 Le Bourget du Lac, Cedex
Tel : 00 33 4 79 44 44 96
Mail : [email protected]
http://www.camptocamp.com
__________________________________________________
Do You Yahoo!?
Sie sind Spam leid? Yahoo! Mail verfügt über einen herausragenden Schutz gegen
Massenmails.
http://mail.yahoo.com _______________________________________________
Users mailing list
[email protected]
http://www.geoext.org/cgi-bin/mailman/listinfo/users