Use ol.xml.pushParseAndPop instead

This commit is contained in:
Bart van den Eijnden
2014-02-25 14:58:16 +01:00
parent 346aa730e5
commit 98368a554d
+2 -2
View File
@@ -73,8 +73,8 @@ ol.format.GML.readFeatures_ = function(node, objectStack) {
var featureType = goog.object.get(context, 'featureType'); var featureType = goog.object.get(context, 'featureType');
var features; var features;
if (localName == 'FeatureCollection') { if (localName == 'FeatureCollection') {
ol.xml.parse(ol.format.GML.FEATURE_COLLECTION_PARSERS_, node, objectStack); features = ol.xml.pushParseAndPop(null,
features = objectStack.pop(); ol.format.GML.FEATURE_COLLECTION_PARSERS_, node, objectStack);
} else if (localName == 'featureMembers') { } else if (localName == 'featureMembers') {
var parsers = {}; var parsers = {};
var parsersNS = {}; var parsersNS = {};