auto-configure featureType and featureNS. p=bartvde (closes #3367)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@12110 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
This commit is contained in:
@@ -116,17 +116,6 @@ OpenLayers.Protocol.WFS.v1 = OpenLayers.Class(OpenLayers.Protocol, {
|
||||
schema: this.schema
|
||||
}, this.formatOptions));
|
||||
}
|
||||
if(!this.featureNS && this.featurePrefix) {
|
||||
// featureNS autodetection
|
||||
var readNode = this.format.readNode;
|
||||
this.format.readNode = function(node, obj) {
|
||||
if(!this.featureNS && node.prefix == this.featurePrefix) {
|
||||
this.featureNS = node.namespaceURI;
|
||||
this.setNamespace("feature", this.featureNS);
|
||||
}
|
||||
return readNode.apply(this, arguments);
|
||||
};
|
||||
}
|
||||
},
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user