WFS 1.1 writer for GetFeature does not support resultType attribute, r=ahocevar (closes #2449)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@10269 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
This commit is contained in:
@@ -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,
|
||||
|
||||
@@ -56,6 +56,7 @@
|
||||
id: "getfeature0",
|
||||
writer: "wfs:GetFeature",
|
||||
arg: {
|
||||
resultType: "hits",
|
||||
propertyNames: ["STATE_NAME", "STATE_FIPS", "STATE_ABBR"]
|
||||
}
|
||||
}];
|
||||
@@ -121,7 +122,7 @@
|
||||
</wfs:Query>
|
||||
--></div>
|
||||
<div id="getfeature0"><!--
|
||||
<wfs:GetFeature service="WFS" version="1.1.0" xmlns:topp="http://www.openplans.org/topp"
|
||||
<wfs:GetFeature service="WFS" version="1.1.0" resultType="hits" xmlns:topp="http://www.openplans.org/topp"
|
||||
xmlns:wfs="http://www.opengis.net/wfs"
|
||||
xmlns:ogc="http://www.opengis.net/ogc"
|
||||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
||||
|
||||
Reference in New Issue
Block a user