Fix a typo - it's writers, not witers
This commit is contained in:
@@ -414,7 +414,7 @@ ol.parser.ogc.GML = function(opt_options) {
|
||||
}
|
||||
}
|
||||
};
|
||||
this.featureNSWiters_ = {
|
||||
this.featureNSWriters_ = {
|
||||
'_typeName': function(feature) {
|
||||
var node = this.createElementNS('feature:' + this.featureType,
|
||||
this.featureNS);
|
||||
@@ -472,7 +472,7 @@ ol.parser.ogc.GML = function(opt_options) {
|
||||
}
|
||||
};
|
||||
if (goog.isDef(this.featureNS)) {
|
||||
this.writers[this.featureNS] = this.featureNSWiters_;
|
||||
this.writers[this.featureNS] = this.featureNSWriters_;
|
||||
}
|
||||
goog.base(this);
|
||||
};
|
||||
@@ -541,7 +541,7 @@ ol.parser.ogc.GML.prototype.readNode = function(node, obj, opt_first) {
|
||||
(/^(.*:)?featureMembers?$/).test(node.parentNode.nodeName))) {
|
||||
this.featureType = node.nodeName.split(':').pop();
|
||||
this.readers[node.namespaceURI] = this.featureNSReaders_;
|
||||
this.writers[node.namespaceURI] = this.featureNSWiters_;
|
||||
this.writers[node.namespaceURI] = this.featureNSWriters_;
|
||||
this.featureNS = node.namespaceURI;
|
||||
this.autoConfig = true;
|
||||
}
|
||||
|
||||
@@ -22,7 +22,7 @@ ol.parser.ogc.GML_v3 = function(opt_options) {
|
||||
'http://schemas.opengis.net/gml/3.1.1/profiles/gmlsfProfile/' +
|
||||
'1.0.0/gmlsf.xsd';
|
||||
goog.base(this, opt_options);
|
||||
this.featureNSWiters_['_geometry'] = function(obj) {
|
||||
this.featureNSWriters_['_geometry'] = function(obj) {
|
||||
var node = this.createElementNS('feature:' + obj.name,
|
||||
this.featureNS);
|
||||
var geometry = obj.value;
|
||||
|
||||
Reference in New Issue
Block a user