diff --git a/src/ol/format/gml/gmlbaseformat.js b/src/ol/format/gml/gmlbaseformat.js index 6f0dab84d8..5d4d0c4191 100644 --- a/src/ol/format/gml/gmlbaseformat.js +++ b/src/ol/format/gml/gmlbaseformat.js @@ -122,7 +122,7 @@ ol.format.GMLBase.prototype.readFeaturesInternal = function(node, objectStack) { var child = node.childNodes[i]; if (child.nodeType === 1) { var ft = child.nodeName.split(':').pop(); - if (goog.array.indexOf(featureType, ft) === -1) { + if (featureType.indexOf(ft) === -1) { var key; if (!goog.object.contains(featureNS, child.namespaceURI)) { key = prefix + goog.object.getCount(featureNS);