Select to view content in your preferred language

Get the selected vertex of an AGSSketchLayer object?

434
0
05-08-2017 06:25 AM
phcc
by
Deactivated User

Is there any wayin the Runtime SDK 100.0 to get the selected vertex of an AGSSketchLayer object, or to set that vertex's new location? 

I'm trying to programmatically move a selected vertex to the current location (mapView.locationDisplay.location). 

For the same project it is also necessary to add a new point at the current GPS location at the touch of a button, and while it's is easy enough to add a sequence of points in a PolygonBuilder object one by one building a new polygon and then using and replaceGeometry in the AGSSketchLayer, there is no way to know after which point you would like to add the new one by getting the sketchLayer object's current selected vertex as it were.

Thanks

0 Replies