Fix for #729, WFS Transaction attributes missing, reported by Andreas.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@3203 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
This commit is contained in:
@@ -47,6 +47,8 @@ OpenLayers.Format.WFS.prototype =
|
|||||||
write: function(features) {
|
write: function(features) {
|
||||||
|
|
||||||
var transaction = document.createElementNS('http://www.opengis.net/wfs', 'wfs:Transaction');
|
var transaction = document.createElementNS('http://www.opengis.net/wfs', 'wfs:Transaction');
|
||||||
|
transaction.setAttribute("version","1.0.0");
|
||||||
|
transaction.setAttribute("service","WFS");
|
||||||
for (var i=0; i < features.length; i++) {
|
for (var i=0; i < features.length; i++) {
|
||||||
switch (features[i].state) {
|
switch (features[i].state) {
|
||||||
case OpenLayers.State.INSERT:
|
case OpenLayers.State.INSERT:
|
||||||
|
|||||||
Reference in New Issue
Block a user