From 0bb5ab8191b99a0b92eda20baa5fba7edc46bcb9 Mon Sep 17 00:00:00 2001 From: bartvde Date: Fri, 30 Apr 2010 09:25:19 +0000 Subject: [PATCH] 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 --- lib/OpenLayers/Format/WFST/v1.js | 9 ++++++++- tests/Format/WFST/v1.html | 29 +++++++++++++++++++++++++++++ 2 files changed, 37 insertions(+), 1 deletion(-) diff --git a/lib/OpenLayers/Format/WFST/v1.js b/lib/OpenLayers/Format/WFST/v1.js index 4ebed5d8b3..7bc4dd4e4d 100644 --- a/lib/OpenLayers/Format/WFST/v1.js +++ b/lib/OpenLayers/Format/WFST/v1.js @@ -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 --> +