Merge pull request #7411 from fredj/getset_layers

Add getLayers and setLayers functions to ol.format.WMSGetFeatureInfo
This commit is contained in:
Frédéric Junod
2017-11-03 11:22:29 +01:00
committed by GitHub
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.