OpenLayers OpenLayers

Changeset 6027

Show
Ignore:
Timestamp:
02/07/08 15:37:54 (1 year ago)
Author:
sbenthall
Message:

Changing WFS.mid.js to address #1278

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • sandbox/topp/olmerge/lib/OpenLayers/Format/WFS.mid.js

    r6022 r6027  
    2222     */ 
    2323    wfsns: "http://www.opengis.net/wfs", 
    24  
    25     /** 
    26      * APIProperty: service 
    27      */ 
    28     service: "WFS", 
    2924     
    3025    /* 
     
    6661        var transaction = this.createElementNS('http://www.opengis.net/wfs', 'wfs:Transaction'); 
    6762        transaction.setAttribute("version","1.0.0"); 
    68         transaction.setAttribute("service",this.service); 
     63        transaction.setAttribute("service","WFS"); 
    6964        for (var i=0; i < features.length; i++) { 
    7065            switch (features[i].state) { 
     
    8075            } 
    8176        } 
    82         return transaction; 
     77         
     78        var data = OpenLayers.Format.XML.prototype.write.apply(this,[transaction]); 
     79        return data; 
    8380    }, 
    8481    
     
    9693        featureContainer.appendChild(geomContainer); 
    9794        for(var attr in feature.attributes) { 
    98             var attrText = document.createTextNode(feature.attributes[attr]);  
     95            var attrText = this.createTextNode(feature.attributes[attr]);  
    9996            var nodename = attr; 
    10097            if (attr.search(":") != -1) { 
     
    136133        var nameNode = this.createElementNS('http://www.opengis.net/wfs', 'wfs:Name'); 
    137134         
    138         var txtNode = document.createTextNode(this.geometryName); 
     135        var txtNode = this.createTextNode(this.geometryName); 
    139136        nameNode.appendChild(txtNode); 
    140137        propertyNode.appendChild(nameNode);