Simple but really hard to find in a busy page:

new OpenLayers.Control.MouseDefaults()

Should be:

new OpenLayers.Control.Navigation()

:)





-----Original Message-----
From: [email protected]
[mailto:[email protected]] On Behalf Of Donald Kerr
Sent: 02 March 2012 20:07
To: [email protected]
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
[email protected]
http://lists.osgeo.org/mailman/listinfo/openlayers-users

_______________________________________________
Users mailing list
[email protected]
http://lists.osgeo.org/mailman/listinfo/openlayers-users

Reply via email to