<div dir="ltr"><div>Hi list</div><div>I am working with Geoexplorer (GXP + Openlayers + GeoExt) and need add WFS layer to Map. how can I do it?</div><div>What I really need is to load a WFS layer and select a feature with the mouse.<br></div><div><br></div><div><div>I am trying with this code. but can't add to map:</div><div><br></div><div>var WFSgeoDB=new OpenLayers.Layer.Vector("WFS", { </div><div><span class="Apple-tab-span" style="white-space:pre">        </span> strategies: [new OpenLayers.Strategy.BBOX()], </div><div><span class="Apple-tab-span" style="white-space:pre">        </span> protocol: new OpenLayers.Protocol.WFS.v1_1_0({ </div><div><span class="Apple-tab-span" style="white-space:pre">        </span> url: "<a href="http://localhost:8080/services/WFSgeoDB">http://localhost:8080/services/WFSgeoDB</a>", </div><div><span class="Apple-tab-span" style="white-space:pre">        </span> featureType: "streets", </div><div><span class="Apple-tab-span" style="white-space:pre">        </span> featureNS: "<a href="http://www.deegree.org/app">http://www.deegree.org/app</a>", </div><div><span class="Apple-tab-span" style="white-space:pre">        </span> featurePrefix: "app", </div><div><span class="Apple-tab-span" style="white-space:pre">        </span> geometryName: "road" </div><div><span class="Apple-tab-span" style="white-space:pre">        </span> }) </div><div><span class="Apple-tab-span" style="white-space:pre">        </span> }); </div></div><div><br></div><div>Then I discovered this class: <b>gxp.plugins.ClickableFeatures </b>(<a href="http://horizon.boundlessgeo.com/opengeo-docs/sdk-api/lib/plugins/ClickableFeatures.html">http://horizon.boundlessgeo.com/opengeo-docs/sdk-api/lib/plugins/ClickableFeatures.html</a>)</div><div> , but not how to use it. You can serve this class for what I want? someone could give some example of its use?<br></div><div><br></div><div><br></div><div>Thanks in advanced</div><div><br></div>Pablo <br><div class="gmail_signature"><div dir="ltr"><div dir="ltr"><br></div></div></div>
</div>