Save strategy should preserve feature.url when transforming, p=pwr,me, r=me (closes #2215)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@9752 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
This commit is contained in:
1 parent
caff5d5261
commit
6e508f5cd6
3 files changed
+37
-8
No files matched your search
@@ -67,6 +67,13 @@ OpenLayers.Feature.Vector = OpenLayers.Class(OpenLayers.Feature, {
|
||||
* {Object}
|
||||
*/
|
||||
style: null,
|
||||
|
||||
/**
|
||||
* APIProperty: url
|
||||
* {String} If this property is set it will be taken into account by
|
||||
* {<OpenLayers.HTTP>} when upadting or deleting the feature.
|
||||
*/
|
||||
url: null,
|
||||
|
||||
/**
|
||||
* Property: renderIntent
|
||||
|
||||
@@ -166,6 +166,9 @@ OpenLayers.Strategy.Save = OpenLayers.Class(OpenLayers.Strategy, {
|
||||
clone = orig.clone();
|
||||
clone.fid = orig.fid;
|
||||
clone.state = orig.state;
|
||||
if(orig.url) {
|
||||
clone.url = orig.url;
|
||||
}
|
||||
clone._original = orig;
|
||||
clone.geometry.transform(local, remote);
|
||||
clones[i] = clone;
|
||||
|
||||
Reference in new issue
Block a user