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 <[email protected]> An: Sarah Schuessler <[email protected]> CC: [email protected] 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:[email protected] [mailto:[email protected]] On Behalf Of Sarah Schuessler Sent: Monday, April 12, 2010 5:51 AM To: Eric Lemoine Cc: [email protected] 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 <[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 __________________________________________________ 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
