Merge pull request #4209 from gberaudo/remove_goog_string_remove
Remove goog.string.remove
This commit is contained in:
@@ -4,7 +4,6 @@ goog.require('goog.array');
|
|||||||
goog.require('goog.asserts');
|
goog.require('goog.asserts');
|
||||||
goog.require('goog.dom.NodeType');
|
goog.require('goog.dom.NodeType');
|
||||||
goog.require('goog.object');
|
goog.require('goog.object');
|
||||||
goog.require('goog.string');
|
|
||||||
goog.require('ol.format.GML2');
|
goog.require('ol.format.GML2');
|
||||||
goog.require('ol.format.XMLFeature');
|
goog.require('ol.format.XMLFeature');
|
||||||
goog.require('ol.xml');
|
goog.require('ol.xml');
|
||||||
@@ -88,8 +87,8 @@ ol.format.WMSGetFeatureInfo.prototype.readFeatures_ =
|
|||||||
ol.format.WMSGetFeatureInfo.layerIdentifier_) >= 0,
|
ol.format.WMSGetFeatureInfo.layerIdentifier_) >= 0,
|
||||||
'localName of layer node should match layerIdentifier');
|
'localName of layer node should match layerIdentifier');
|
||||||
|
|
||||||
var featureType = goog.string.remove(layer.localName,
|
var toRemove = ol.format.WMSGetFeatureInfo.layerIdentifier_;
|
||||||
ol.format.WMSGetFeatureInfo.layerIdentifier_) +
|
var featureType = layer.localName.replace(toRemove, '') +
|
||||||
ol.format.WMSGetFeatureInfo.featureIdentifier_;
|
ol.format.WMSGetFeatureInfo.featureIdentifier_;
|
||||||
|
|
||||||
context['featureType'] = featureType;
|
context['featureType'] = featureType;
|
||||||
|
|||||||
Reference in New Issue
Block a user