need a setFeatureType function on Protocol.WFS, r=erilem (closes #2639)

git-svn-id: http://svn.openlayers.org/trunk/openlayers@11659 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
This commit is contained in:
bartvde
2011-03-07 15:40:37 +00:00
parent 86fd4d076b
commit 23d24518fb
2 changed files with 28 additions and 0 deletions

View File

@@ -183,6 +183,18 @@ OpenLayers.Protocol.WFS.v1 = OpenLayers.Class(OpenLayers.Protocol, {
return response;
},
/**
* APIMethod: setFeatureType
* Change the feature type on the fly.
*
* Parameters:
* featureType - {String} Local (without prefix) feature typeName.
*/
setFeatureType: function(featureType) {
this.featureType = featureType;
this.format.featureType = featureType;
},
/**
* Method: handleRead