Is it possible to programmatically select different vertices in the AGSSketchGraphicsLayer (other than the last vertex)?
Unfortunately, there isn't a public API for this. We can consider adding it to a future release if you can describe how it would be helpful or how you plan on using it
I'm using the AGSSketchGraphicsLayer with the geometry set to a mutable polyline to draw a connected, ordered path of coordinates points (or a "route"). I want to be able to select a specific coordinate point as the selected point programmatically. For example, when I first open a "route", I use the AGSSketchGraphicsLayer to draw the "route" as a polyline and I want to programmatically select the first point (rather than the last).
Do you expect the user to interactively add more vertices? Typically, this happens after the last vertex (for example, if they want to extend the route), that's why we provide an API to select the last vertex. Do you want to select the first vertex because the user needs to insert vertices after it, and not at the end of the line?
Yes, the user can interactively add, insert and delete vertices. Insertion can occur at any point on the connected path. In the case where the user deletes a vertex, then the previous vertex should be selected.
Retrieving data ...