Make FEATURE_COLLECTION_PARSERS an instance property
This commit is contained in:
@@ -68,6 +68,18 @@ ol.format.GMLBase = function(opt_options) {
|
|||||||
*/
|
*/
|
||||||
this.schemaLocation = '';
|
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.base(this);
|
||||||
};
|
};
|
||||||
goog.inherits(ol.format.GMLBase, ol.format.XMLFeature);
|
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 {Node} node Node.
|
||||||
* @param {Array.<*>} objectStack Object stack.
|
* @param {Array.<*>} objectStack Object stack.
|
||||||
|
|||||||
Reference in New Issue
Block a user