<html><head><style type="text/css"><!-- DIV {margin:0px;} --></style></head><body><div style="font-family:times new roman,new york,times,serif;font-size:12pt"><div>Hi Eric,<br><br>I have add radio buttons.<br>So I think that I need to register a listener if I check one of my radio button like this one:<br><pre>listeners: {<br> "radiochange": function(node){<br> // alert(node.layer.name + " is now the the active layer.");<br> node.getattributes();<br> }<br></pre>I will take a deeper look at the api. Or do you perhaps have a little example?<br><br>Thanks a lot.<br>best regards<br>Sarah<br></div><div style="font-family: times new roman,new york,times,serif; font-size: 12pt;"><br><div style="font-family: arial,helvetica,sans-serif; font-size: 10pt;"><font face="Tahoma" size="2"><hr size="1"><b><span style="font-weight:
bold;"></span></b></font><br>On Mon, Apr 12, 2010 at 10:10 AM, Sarah Schuessler <<a ymailto="mailto:sarah_flip@yahoo.de" href="mailto:sarah_flip@yahoo.de">sarah_flip@yahoo.de</a>> wrote:<br>> Hi list,<br>><br>> is there a best practice for choosing a layer:<br>> I have different layer and for one of them I want to get attribute data. By<br>> now I 'choose' my layer with a GeoExt.data.FeatureStore and a<br>> OpenLayers.Protocol.WFS.<br>> I would think of either a window, panel,.. that appears if user have clicked<br>> on a button choosing the right layer with a combobox, .. or take the checked<br>> radiobutton at tree to make a getfeatureinfo request. Then the attribute<br>> data appear at a grid.<br>><br>> What`s the best, easiest?<br>> Anybody has an example page or a hint?<br><br>Hi<br><br>One option would be to add radio buttons to layer nodes in the layer<br>tree. See <<a
href="http://dev.geoext.org/trunk/geoext/examples/tree.html" target="_blank">http://dev.geoext.org/trunk/geoext/examples/tree.html</a>>.<br><br>Cheers,<br><br>-- <br>Eric Lemoine<br><br>Camptocamp France SAS<br>Savoie Technolac, BP 352<br>73377 Le Bourget du Lac, Cedex<br><br>Tel : 00 33 4 79 44 44 96<br>Mail : <a ymailto="mailto:eric.lemoine@camptocamp.com" href="mailto:eric.lemoine@camptocamp.com">eric.lemoine@camptocamp.com</a><br><a href="http://www.camptocamp.com" target="_blank">http://www.camptocamp.com</a><br></div></div>
</div><br>__________________________________________________<br>Do You Yahoo!?<br>Sie sind Spam leid? Yahoo! Mail verfügt über einen herausragenden Schutz gegen Massenmails. <br>http://mail.yahoo.com </body></html>