From 67146408443314e367d5a6fac6d264290536cf7b Mon Sep 17 00:00:00 2001 From: bartvde Date: Fri, 15 Jul 2011 09:44:08 +0000 Subject: [PATCH] add support for handle attribute in Format.WFST, r=ahocevar (closes #3412) git-svn-id: http://svn.openlayers.org/trunk/openlayers@12170 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf --- lib/OpenLayers/Format/WFST/v1.js | 31 ++++++++++++++++++++++++------- tests/Format/WFST/v1.html | 26 +++++++++++++------------- 2 files changed, 37 insertions(+), 20 deletions(-) diff --git a/lib/OpenLayers/Format/WFST/v1.js b/lib/OpenLayers/Format/WFST/v1.js index 2b68b0658b..41afdc152a 100644 --- a/lib/OpenLayers/Format/WFST/v1.js +++ b/lib/OpenLayers/Format/WFST/v1.js @@ -224,6 +224,7 @@ OpenLayers.Format.WFST.v1 = OpenLayers.Class(OpenLayers.Format.XML, { attributes: { service: "WFS", version: this.version, + handle: options && options.handle, outputFormat: options && options.outputFormat, maxFeatures: options && options.maxFeatures, "xsi:schemaLocation": this.schemaLocationAttr(options) @@ -240,15 +241,16 @@ OpenLayers.Format.WFST.v1 = OpenLayers.Class(OpenLayers.Format.XML, { return node; }, "Transaction": function(obj) { + var options = obj && obj.options; var node = this.createElementNSPlus("wfs:Transaction", { attributes: { service: "WFS", - version: this.version + version: this.version, + handle: options && options.handle } }); var i, len; var features = obj && obj.features; - var options = obj && obj.options; if(features) { var name, feature, geometry; for(i=0, len=features.length; i
@@ -321,7 +321,7 @@ -->