Selecting vertices in the AGSSketchGraphicsLayer

3462
4
06-16-2015 08:03 AM
JaneGee
New Contributor

Is it possible to programmatically select different vertices in the AGSSketchGraphicsLayer (other than the last vertex)?

0 Kudos
4 Replies
DiveshGoyal
Esri Regular Contributor

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

0 Kudos
JaneGee
New Contributor

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).

0 Kudos
DiveshGoyal
Esri Regular Contributor

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?

0 Kudos
JaneGee
New Contributor

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.

0 Kudos