AnsweredAssumed Answered

What method of AGSSketchEditor for inserting the first vertex?

Question asked by reedhtr on Jul 27, 2018
Latest reply on Jul 31, 2018 by MDostal-esristaff

I need to support starting a sketch programmatically with a GPS point, not just tapping the screen.  How do I do that for line and polygon layers?


AGSSketchEditor.replaceGeometry works for point layers only. 

AGSSketchEditor.insertVertexAfterSelectedVertexWithPoint works if your sketch has at least one point already. 

AGSSketchEditor.startWithGeometry fails if you pass in a polyline or polygon that just has one vertex.