Remove private static members from WMSGetFeatureInfo format

This commit is contained in:
Tim Schaub
2018-02-11 09:24:45 -07:00
parent 38d27534c0
commit cc5b80036d
+4 -6
View File
@@ -51,17 +51,15 @@ inherits(WMSGetFeatureInfo, XMLFeature);
/** /**
* @const * @const
* @type {string} * @type {string}
* @private
*/ */
WMSGetFeatureInfo.featureIdentifier_ = '_feature'; const featureIdentifier = '_feature';
/** /**
* @const * @const
* @type {string} * @type {string}
* @private
*/ */
WMSGetFeatureInfo.layerIdentifier_ = '_layer'; const layerIdentifier = '_layer';
/** /**
@@ -102,7 +100,7 @@ WMSGetFeatureInfo.prototype.readFeatures_ = function(node, objectStack) {
} }
const context = objectStack[0]; const context = objectStack[0];
const toRemove = WMSGetFeatureInfo.layerIdentifier_; const toRemove = layerIdentifier;
const layerName = layer.localName.replace(toRemove, ''); const layerName = layer.localName.replace(toRemove, '');
if (this.layers_ && !includes(this.layers_, layerName)) { if (this.layers_ && !includes(this.layers_, layerName)) {
@@ -110,7 +108,7 @@ WMSGetFeatureInfo.prototype.readFeatures_ = function(node, objectStack) {
} }
const featureType = layerName + const featureType = layerName +
WMSGetFeatureInfo.featureIdentifier_; featureIdentifier;
context['featureType'] = featureType; context['featureType'] = featureType;
context['featureNS'] = this.featureNS_; context['featureNS'] = this.featureNS_;