Use ol.format.GMLBase.GMLNS and get rid of unneeded Object

This commit is contained in:
Bart van den Eijnden
2015-02-02 12:46:49 +01:00
parent 5d70e61753
commit 423c8761aa
+7 -8
View File
@@ -71,14 +71,13 @@ ol.format.GMLBase = function(opt_options) {
/** /**
* @type {Object.<string, Object.<string, Object>>} * @type {Object.<string, Object.<string, Object>>}
*/ */
this.FEATURE_COLLECTION_PARSERS = Object({ this.FEATURE_COLLECTION_PARSERS = {};
'http://www.opengis.net/gml': { this.FEATURE_COLLECTION_PARSERS[ol.format.GMLBase.GMLNS] = {
'featureMember': ol.xml.makeReplacer( 'featureMember': ol.xml.makeReplacer(
ol.format.GMLBase.prototype.readFeaturesInternal), ol.format.GMLBase.prototype.readFeaturesInternal),
'featureMembers': ol.xml.makeReplacer( 'featureMembers': ol.xml.makeReplacer(
ol.format.GMLBase.prototype.readFeaturesInternal) ol.format.GMLBase.prototype.readFeaturesInternal)
} };
});
goog.base(this); goog.base(this);
}; };