Changeset 6027
- Timestamp:
- 02/07/08 15:37:54 (1 year ago)
- Files:
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
sandbox/topp/olmerge/lib/OpenLayers/Format/WFS.mid.js
r6022 r6027 22 22 */ 23 23 wfsns: "http://www.opengis.net/wfs", 24 25 /**26 * APIProperty: service27 */28 service: "WFS",29 24 30 25 /* … … 66 61 var transaction = this.createElementNS('http://www.opengis.net/wfs', 'wfs:Transaction'); 67 62 transaction.setAttribute("version","1.0.0"); 68 transaction.setAttribute("service", this.service);63 transaction.setAttribute("service","WFS"); 69 64 for (var i=0; i < features.length; i++) { 70 65 switch (features[i].state) { … … 80 75 } 81 76 } 82 return transaction; 77 78 var data = OpenLayers.Format.XML.prototype.write.apply(this,[transaction]); 79 return data; 83 80 }, 84 81 … … 96 93 featureContainer.appendChild(geomContainer); 97 94 for(var attr in feature.attributes) { 98 var attrText = document.createTextNode(feature.attributes[attr]);95 var attrText = this.createTextNode(feature.attributes[attr]); 99 96 var nodename = attr; 100 97 if (attr.search(":") != -1) { … … 136 133 var nameNode = this.createElementNS('http://www.opengis.net/wfs', 'wfs:Name'); 137 134 138 var txtNode = document.createTextNode(this.geometryName);135 var txtNode = this.createTextNode(this.geometryName); 139 136 nameNode.appendChild(txtNode); 140 137 propertyNode.appendChild(nameNode);
