diff --git a/lib/OpenLayers/Format/WFST/v1_1_0.js b/lib/OpenLayers/Format/WFST/v1_1_0.js index 3010b444a8..4c65d386e2 100644 --- a/lib/OpenLayers/Format/WFST/v1_1_0.js +++ b/lib/OpenLayers/Format/WFST/v1_1_0.js @@ -109,8 +109,10 @@ OpenLayers.Format.WFST.v1_1_0 = OpenLayers.Class( "wfs": OpenLayers.Util.applyDefaults({ "GetFeature": function(options) { var node = OpenLayers.Format.WFST.v1.prototype.writers["wfs"]["GetFeature"].apply(this, arguments); - options && options.resultType && this.setAttributes(node, { - resultType: options.resultType + options && this.setAttributes(node, { + resultType: options.resultType, + startIndex: options.startIndex, + count: options.count }); return node; }, diff --git a/lib/OpenLayers/Protocol/WFS/v1.js b/lib/OpenLayers/Protocol/WFS/v1.js index f5578f6dcd..966cd96b8d 100644 --- a/lib/OpenLayers/Protocol/WFS/v1.js +++ b/lib/OpenLayers/Protocol/WFS/v1.js @@ -167,6 +167,16 @@ OpenLayers.Protocol.WFS.v1 = OpenLayers.Class(OpenLayers.Protocol, { * }); * (end) * + * To use a configured protocol to use WFS paging (if supported by the + * server), applications could do the following: + * + * (code) + * protocol.read({ + * startIndex: 0, + * count: 50 + * }); + * (end) + * * To limit the attributes returned by the GetFeature request, applications * can use the propertyNames option to specify the properties to include in * the response: diff --git a/tests/Format/WFST/v1_1_0.html b/tests/Format/WFST/v1_1_0.html index 62a95710ee..d6fdd50ed8 100644 --- a/tests/Format/WFST/v1_1_0.html +++ b/tests/Format/WFST/v1_1_0.html @@ -75,6 +75,13 @@ resultType: "hits", propertyNames: ["STATE_NAME", "STATE_FIPS", "STATE_ABBR"] } + }, { + id: "getfeature1", + writer: "wfs:GetFeature", + arg: { + count: 10, + startIndex: 20 + } }]; t.plan(cases.length); @@ -150,6 +157,16 @@ --> +