I'm working on a kind of editing application in my company, however, I can't figured out a solution on this problem; I edit vertices of a feature and then pan the map, but the feature goes back its original shape.
The sample is using on demand mode featurelayer. When panning the map, it forces to retrieve the features from server again. According to the screenshot you provided, the feature you are editing is still selected when you pan the map, which means the edits haven�??t been sent to server since the sample code only call applyEdits when the feature is deselected. So the solutions could be: 1. Use snapshot mode instead of on demand. 2. Call applyEdits whenever a vertex moves.
I have already tested these, unfortunately they are not efficient since they consume a lot of memory or bandwidth (note that I'm working on Istanbul data which contains millions of features).
I have found another efficient way that you may want to hear;
I add the selected feature to the graphic container and activate edit toolbar for it. When editor toolbar is deactivated, the application sends all edits to the server.
At this point Here is the another problem that I came up with it;
After I did some changes on the feature, I checked current state of the edit toolbar with using .getCurrentState() function but it returned false for isModified variable. I think it doesn't work properly with a standalone graphic. Do you know anything about that?