[Users] dynamic layer choosing

Sarah Schuessler sarah_flip at yahoo.de
Thu Apr 15 09:58:58 CEST 2010


Hi,

thanks for your example. 

If I want to use a FeatureStore with a grid then I have to define my fields, columns at the beginning as far as I know. But I don`t know these because I choose my layer at my application. So I have to use WMSGetFeatureInfo with a popup? 
I`ve found this statement from Eric Lemoine at mapfish mailinglist:
> using an OpenLayers.Control.WMSGetFeatureInfo with a
> 
GeoExt.data.FeatureStore. Features received in the GetFeatureInfo
> response are added to the store with store.loadData(features).
which indicates that I can use a FeatureStore. But this is only possible if I know my queryable layer?

I want to ask all features within current extent- so I need to use GetFeature with a filter?

Thanks.
best regards
Sarah





________________________________
Von: Dan Ramage <dan at inlet.geol.sc.edu>
An: Sarah Schuessler <sarah_flip at yahoo.de>
CC: users at geoext.org
Gesendet: Montag, den 12. April 2010, 18:30:36 Uhr
Betreff: RE: [Users] dynamic layer choosing

 
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 

__________________________________________________
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/20100415/2f93e6a4/attachment.htm 


More information about the Users mailing list