[Users] dynamic layer choosing

Dan Ramage dan at inlet.geol.sc.edu
Mon Apr 12 18:30:36 CEST 2010


Don’t know if this helps, but here:
http://carolinasrcoos.org/carolinasrcoos.html is how I handled I think what
you are asking about.

The check box turns on the layer, clicking the radio button will enable
GetFeatureInfo requests for that layer when you click on an item in that
layer.

 

 

Dan

 

  _____  

From: users-bounces at geoext.org [mailto:users-bounces at geoext.org] On Behalf
Of Sarah Schuessler
Sent: Monday, April 12, 2010 5:51 AM
To: Eric Lemoine
Cc: users at geoext.org
Subject: Re: [Users] dynamic layer choosing

 

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 <sarah_flip at yahoo.de>
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 : eric.lemoine at camptocamp.com
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 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.geoext.org/pipermail/users/attachments/20100412/27bfdd04/attachment.htm 


More information about the Users mailing list