selectVertex

fun selectVertex(partIndex: Int, vertexIndex: Int)

Selects the vertex with the specified indices. When a vertex is selected it can be edited while all other vertices of the geometry are unchanged. For example, you can move only the selected vertex interactively by dragging, or call GeometryEditor.moveSelectedElement or GeometryEditor.moveSelectedElement to move the selected vertex programmatically.

When a vertex is selected, a GeometryEditorVertex is returned from GeometryEditor.selectedElement.

Since

200.1.0

Parameters

partIndex

The index of the part that contains the vertex (point)) to be selected, within the geometry editor's com.arcgismaps.geometry.Multipart geometry. Use a value of 0 for com.arcgismaps.geometry.Point and com.arcgismaps.geometry.Multipoint (non-multipart geometries).

vertexIndex

The index of the vertex (point) to be selected, within the given part of the geometry editor's com.arcgismaps.geometry.Multipart geometry, or within the com.arcgismaps.geometry.Multipoint geometry. Use a value of 0 for com.arcgismaps.geometry.Point geometries.

See also

Throws

if the geometry editor is not started

if any of the given indices are out of range for the current geometry