With Openlayers 2.11 <br><div class="gmail_quote">it works : <br><br>OpenLayers.Strategy.Save.prototype.save = function(features) {<br> if(!features) {<br> features = this.layer.features;<br> }<br>
this.events.triggerEvent("start", {features:features});<br>
var remote = this.layer.projection;<br> var local = this.layer.map.getProjectionObject();<br> if(!local.equals(remote)) {<br> var len = features.length;<br> var clones = new Array(len);<br>
var orig, clone;<br> for(var i=0; i<len; ++i) {<br> orig = features[i];<br> clone = orig.clone();<br> clone.fid = orig.fid;<br> clone.state = orig.state;<br>
if(orig.url) {<br> clone.url = orig.url;<br> }<br> clone._original = orig;<br> clone.geometry.transform(local, remote);<br> clones[i] = clone;<br>
}<br> features = clones;<br> }<br> this.layer.protocol.commit(features, {<br> callback: this.onCommit,<br> scope: this,<br> headers: {'Content-Type': 'text/xml'}<br>
});<br> };<br><font color="#888888"><br>Marc-André Trottier<br>
</font></div><br>