Make FEATURE_COLLECTION_PARSERS an instance property

This commit is contained in:
Bart van den Eijnden
2015-01-30 21:00:04 +01:00
parent 0243ce6612
commit 5d70e61753

View File

@@ -68,6 +68,18 @@ ol.format.GMLBase = function(opt_options) {
*/
this.schemaLocation = '';
/**
* @type {Object.<string, Object.<string, 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.<string, Object.<string, 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.