Add further improvements to WFS writing code from sbenthall, to write out
things in IE. (Closes #1278) (again) git-svn-id: http://svn.openlayers.org/trunk/openlayers@6054 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
This commit is contained in:
@@ -76,7 +76,8 @@ OpenLayers.Format.WFS = OpenLayers.Class(OpenLayers.Format.GML, {
|
|||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return transaction;
|
|
||||||
|
return OpenLayers.Format.XML.prototype.write.apply(this,[transaction]);
|
||||||
},
|
},
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -92,7 +93,7 @@ OpenLayers.Format.WFS = OpenLayers.Class(OpenLayers.Format.GML, {
|
|||||||
var featureContainer = this.createElementNS(this.featureNS, "feature:" + this.featureName);
|
var featureContainer = this.createElementNS(this.featureNS, "feature:" + this.featureName);
|
||||||
featureContainer.appendChild(geomContainer);
|
featureContainer.appendChild(geomContainer);
|
||||||
for(var attr in feature.attributes) {
|
for(var attr in feature.attributes) {
|
||||||
var attrText = document.createTextNode(feature.attributes[attr]);
|
var attrText = this.createTextNode(feature.attributes[attr]);
|
||||||
var nodename = attr;
|
var nodename = attr;
|
||||||
if (attr.search(":") != -1) {
|
if (attr.search(":") != -1) {
|
||||||
nodename = attr.split(":")[1];
|
nodename = attr.split(":")[1];
|
||||||
@@ -132,7 +133,7 @@ OpenLayers.Format.WFS = OpenLayers.Class(OpenLayers.Format.GML, {
|
|||||||
var propertyNode = this.createElementNS(this.wfsns, 'wfs:Property');
|
var propertyNode = this.createElementNS(this.wfsns, 'wfs:Property');
|
||||||
var nameNode = this.createElementNS(this.wfsns, 'wfs:Name');
|
var nameNode = this.createElementNS(this.wfsns, 'wfs:Name');
|
||||||
|
|
||||||
var txtNode = document.createTextNode(this.geometryName);
|
var txtNode = this.createTextNode(this.geometryName);
|
||||||
nameNode.appendChild(txtNode);
|
nameNode.appendChild(txtNode);
|
||||||
propertyNode.appendChild(nameNode);
|
propertyNode.appendChild(nameNode);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user