mirror of
https://github.com/Esri/offline-editor-js.git
synced 2026-02-07 14:26:22 +00:00
hard deprecate getReadableEdit()
This commit is contained in:
parent
9d7ec49722
commit
ad1f3d77ee
@ -1037,6 +1037,10 @@ define([
|
||||
}
|
||||
|
||||
}
|
||||
else{
|
||||
// No edits were found
|
||||
callback(true,[]);
|
||||
}
|
||||
|
||||
// wait for all requests to finish
|
||||
//
|
||||
@ -1329,20 +1333,13 @@ define([
|
||||
},
|
||||
|
||||
/**
|
||||
* DEPRECATED @ v2.5
|
||||
* DEPRECATED @ v2.5. Use getAllEditsArray() and parse the results
|
||||
* A string value representing human readable information on pending edits
|
||||
* @param edit
|
||||
* @returns {string}
|
||||
*/
|
||||
getReadableEdit: function (edit) {
|
||||
var layer = this._featureLayers[edit.layer];
|
||||
var graphic = this._editStore._deserialize(edit.graphic);
|
||||
var readableGraphic = graphic.geometry.type;
|
||||
var layerId = edit.layer.substring(edit.layer.lastIndexOf("/") + 1);
|
||||
if (layer) {
|
||||
readableGraphic += " [id=" + graphic.attributes[layer.objectIdField] + "]";
|
||||
}
|
||||
return "o:" + edit.operation + ", l:" + layerId + ", g:" + readableGraphic;
|
||||
return "DEPRECATED at v2.5!";
|
||||
}
|
||||
|
||||
}); // declare
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user