diff --git a/lib/OpenLayers/Format/WFST/v1_1_0.js b/lib/OpenLayers/Format/WFST/v1_1_0.js index 56b215aa6f..1f59a1b4aa 100644 --- a/lib/OpenLayers/Format/WFST/v1_1_0.js +++ b/lib/OpenLayers/Format/WFST/v1_1_0.js @@ -102,6 +102,13 @@ OpenLayers.Format.WFST.v1_1_0 = OpenLayers.Class( */ writers: { "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 + }); + return node; + }, "Query": function(options) { options = OpenLayers.Util.extend({ featureNS: this.featureNS, diff --git a/tests/Format/WFST/v1_1_0.html b/tests/Format/WFST/v1_1_0.html index c5ab632c63..9678d580e0 100644 --- a/tests/Format/WFST/v1_1_0.html +++ b/tests/Format/WFST/v1_1_0.html @@ -56,6 +56,7 @@ id: "getfeature0", writer: "wfs:GetFeature", arg: { + resultType: "hits", propertyNames: ["STATE_NAME", "STATE_FIPS", "STATE_ABBR"] } }]; @@ -121,7 +122,7 @@ -->