This sample demonstrates how you can use the sketch editor to draw point or line or polygon geometry. The sample has a toolbar of sketch tools at the bottom. You can choose the type of geometry using the switch. Sketch by clicking on the map. There are tools to undo or redo an action or clear everything.
How it works
To set the type of geometry, you need to assign the geometryBuilder property on AGSSketchGraphicsOverlay. It could be a AGSPointBuilder or AGSPolylineBuilder or AGSPolygonBuilder. The sketch graphics overlay has a undo manager of type NSUndoManager that provides the undo and redo methods. To clear everything there is a clear method on the sketch graphics overlay.