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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user