[OpenLayers-Users] Vector WFS Layer Does Not Refresh on Panning Map

Donald Kerr donald.kerr at dkerr.co.uk
Tue Mar 6 16:52:33 EST 2012


Simple but really hard to find in a busy page:

new OpenLayers.Control.MouseDefaults()

Should be:

new OpenLayers.Control.Navigation()

:)





-----Original Message-----
From: openlayers-users-bounces at lists.osgeo.org
[mailto:openlayers-users-bounces at lists.osgeo.org] On Behalf Of Donald Kerr
Sent: 02 March 2012 20:07
To: openlayers-users at lists.osgeo.org
Subject: [OpenLayers-Users] Vector WFS Layer Does Not Refresh on Panning Map


I have just switched from 2.10 to 2.11. With 2.11, the following layer works
with the initial load, i.e. the releavant wfs features are drawn, but when
the map is panned, no further features are requested or drawn. It works with
2.10. I have tried both wfs 1.0.0 and 1.1.0; neither works in 2.11 and both
work in 2.10.

	var layerMyWFS = new OpenLayers.Layer.Vector("MyFeatures", {
		strategies: [new OpenLayers.Strategy.BBOX()],
		protocol: new OpenLayers.Protocol.WFS({
		url: "http://localhost/mapserver/mapserv.asp",
			featureType: "MyFeatures",
			featureNS: "http://mapserver.gis.umn.edu/mapserver",
			featurePrefix: "ms",
			geometryName: "msGeometry",
			srsName: "EPSG:27700",
			version: "1.1.0" 
		}),
	});

Any advice appreciated.

Many thanks.

Regards,

Donald

_______________________________________________
Users mailing list
Users at lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/openlayers-users



More information about the Users mailing list