Merge pull request #7410 from fredj/getset_getFeatureType

Add getFeatureType and setFeatureType functions to ol.format.WFS
This commit is contained in:
Frédéric Junod authored and GitHub committed 2017-11-01 15:32:25 +01:00
commit 8ef9b8feea
2 files changed
+30 -2

No files matched your search

+16
View File
@@ -116,6 +116,22 @@ ol.format.WFS.SCHEMA_LOCATIONS = {
ol.format.WFS.DEFAULT_VERSION = '1.1.0';
/**
* @return {Array.<string>|string|undefined} featureType
*/
ol.format.WFS.prototype.getFeatureType = function() {
return this.featureType_;
};
/**
* @param {Array.<string>|string|undefined} featureType Feature type(s) to parse.
*/
ol.format.WFS.prototype.setFeatureType = function(featureType) {
this.featureType_ = featureType;
};
/**
* Read all features from a WFS FeatureCollection.
*