Hello!
We are developing an application based on ArcGIS Runtime .NET 100.3, .Net Framework 4.7.1 , Windows 10 64bit
For polygon feature edit operations we use the the sketch editor using different modes:
We trigger the <command>.Execute in the code (for selected workflows)
(MyMapView.SketchEditor.AddCommand.Execute(insertPoint); MyMapView.SketchEditor.MoveSelectedVertex(newPosition); ... MyMapView.SketchEditor.UndoCommand.Execute(...););
Additionally, the user is allowed to edit the geometry interactively on the mapview
(AllowVertexEditing = true,
SketchVertexEditMode VertexEditMode = InteractionEdit;
RequireSelectionBeforeDrag = false; ... )
Our question is: What does the UndoCommand exactly "undo"?
Our expectation is, that the last operation is rollbacked, but we observed following behaviour (check the attached videos):
Move - Undo
- In case of moving an arbitrary vertex interactively, the undo command does not reset the original position, but DELETES the moved point.
- same behaviour when using MyMapView.SketchEditor.MoveSelectedVertex(newPosition);
Delete - Undo
- In case of deleting an arbitrary selected vertex, the undo command does not recreate the deleted point, but deletes the vertex subsequent to the deleted point ???
Is this behaviour "as designed" ?
Is there a detailled description in the APIreference documentation?
Thanks in advance,
Karin