[OpenLayers-Users] WFS layer not issuing requests to server

Luís de Sousa luis.a.de.sousa at gmail.com
Mon Oct 1 06:43:41 PDT 2012


Dear all,

I have a polygons layer being served by MapServer that I'd like to include
as a WFS layer in a map. I've previously tested WMS and WFS requests on this
layer through the internet browser and everything works as it should.

I have defined both WFS and WMS objects with OL for this layer:

    var mapProjection = "EPSG:28992";

    var buildsWMS =  new OpenLayers.Layer.WMS(
    	"BuildsLocalhost",
    
"http://localhost/cgi-bin/mapserv?map=/var/www/MapServ/Rotterdam02.map",
        {layers: "Buildings", 
         format: "image/png",
         srsName: mapProjection,
	 	 transparent: "true",
     	 projection: new OpenLayers.Projection(mapProjection)},
        {isBaseLayer: false,  
     	 visibility: false}
    );
    
    var buildsWFS = new OpenLayers.Layer.Vector("BuildFeatures", {
		strategies: [new OpenLayers.Strategy.BBOX()],
		styleMap: style,
		protocol: new OpenLayers.Protocol.WFS({
			version: "1.1.0",
			url:
"http://localhost/cgi-bin/mapserv?map=/var/www/MapServ/Rotterdam02.map",
			featureNS: "http://mapserver.gis.umn.edu/mapserver",
			featureType: "Buildings",
			srsName: mapProjection
		})
	});

The WMS obj does what it should and the layer gets displayed in the map. As
for the WFS layer there's no request sent to the server, but also no errors
issued by the browser.

I imagine something must be wrong with the WFS object, but I can't detect
it. Any insight would be welcome.

Thank you.



--
View this message in context: http://osgeo-org.1560.n6.nabble.com/WFS-layer-not-issuing-requests-to-server-tp5005562.html
Sent from the OpenLayers Users mailing list archive at Nabble.com.


More information about the Users mailing list