Add getLayers and setLayers functions to ol.format.WMSGetFeatureInfo

This commit is contained in:
Frederic Junod
2017-11-01 15:51:23 +01:00
parent 8ef9b8feea
commit 8a9d6b417f
2 changed files with 40 additions and 12 deletions

View File

@@ -63,6 +63,22 @@ ol.format.WMSGetFeatureInfo.featureIdentifier_ = '_feature';
ol.format.WMSGetFeatureInfo.layerIdentifier_ = '_layer';
/**
* @return {Array.<string>} layers
*/
ol.format.WMSGetFeatureInfo.prototype.getLayers = function() {
return this.layers_;
};
/**
* @param {Array.<string>} layers Layers to parse.
*/
ol.format.WMSGetFeatureInfo.prototype.setLayers = function(layers) {
this.layers_ = layers;
};
/**
* @param {Node} node Node.
* @param {Array.<*>} objectStack Object stack.