WFS - layer not displayed

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view

WFS - layer not displayed

Hi all, I am new at WFS, and I encountered a problem.
I followed the tutorial on
With WMS is all right, but in the first step of WFS I encountered a problem: layer is not shown on the map. He is in LayerSwitche, but not displayed on the map.

Here is a cod that I use:

 ...    var wfslayer = new OpenLayers.Layer.Vector("WFS", {
    strategies: [new OpenLayers.Strategy.BBOX()],
    protocol: new OpenLayers.Protocol.WFS({
              url:  "http://localhost:8080/geoserver/wfs",
              featureType: "states",
              featureNS: "",
              srsName: "EPSG:4326",
              version: "1.1.0"                    
map.addLayers([gmap, gsat, wfslayer]);   ....

Can someone help me?