Have Format.WFST support multiple typenames, r=ahocevar (closes #1839)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@10260 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
This commit is contained in:
@@ -186,7 +186,14 @@ OpenLayers.Format.WFST.v1 = OpenLayers.Class(OpenLayers.Format.XML, {
|
||||
"xsi:schemaLocation": this.schemaLocationAttr(options)
|
||||
}
|
||||
});
|
||||
this.writeNode("Query", options, node);
|
||||
if (typeof this.featureType == "string") {
|
||||
this.writeNode("Query", options, node);
|
||||
} else {
|
||||
for (var i=0,len = this.featureType.length; i<len; i++) {
|
||||
options.featureType = this.featureType[i];
|
||||
this.writeNode("Query", options, node);
|
||||
}
|
||||
}
|
||||
return node;
|
||||
},
|
||||
"Transaction": function(features) {
|
||||
|
||||
Reference in New Issue
Block a user