From 5d70e617539982b3ca10bea2f0da7dfbbfe11fed Mon Sep 17 00:00:00 2001 From: Bart van den Eijnden Date: Fri, 30 Jan 2015 21:00:04 +0100 Subject: [PATCH] Make FEATURE_COLLECTION_PARSERS an instance property --- src/ol/format/gml/gmlbaseformat.js | 25 ++++++++++++------------- 1 file changed, 12 insertions(+), 13 deletions(-) diff --git a/src/ol/format/gml/gmlbaseformat.js b/src/ol/format/gml/gmlbaseformat.js index 47090c868d..be4378cd20 100644 --- a/src/ol/format/gml/gmlbaseformat.js +++ b/src/ol/format/gml/gmlbaseformat.js @@ -68,6 +68,18 @@ ol.format.GMLBase = function(opt_options) { */ this.schemaLocation = ''; + /** + * @type {Object.>} + */ + this.FEATURE_COLLECTION_PARSERS = Object({ + 'http://www.opengis.net/gml': { + 'featureMember': ol.xml.makeReplacer( + ol.format.GMLBase.prototype.readFeaturesInternal), + 'featureMembers': ol.xml.makeReplacer( + ol.format.GMLBase.prototype.readFeaturesInternal) + } + }); + goog.base(this); }; goog.inherits(ol.format.GMLBase, ol.format.XMLFeature); @@ -118,19 +130,6 @@ ol.format.GMLBase.prototype.readFeaturesInternal = function(node, objectStack) { }; -/** - * @type {Object.>} - */ -ol.format.GMLBase.prototype.FEATURE_COLLECTION_PARSERS = Object({ - 'http://www.opengis.net/gml': { - 'featureMember': ol.xml.makeReplacer( - ol.format.GMLBase.prototype.readFeaturesInternal), - 'featureMembers': ol.xml.makeReplacer( - ol.format.GMLBase.prototype.readFeaturesInternal) - } -}); - - /** * @param {Node} node Node. * @param {Array.<*>} objectStack Object stack.