selectMidVertex

fun selectMidVertex(partIndex: Int, segmentIndex: Int)

Selects the mid-vertex with the specified indices. Mid-vertices do not exist in the GeometryEditor.geometry. They exist only in the display to serve as a visual cue that new vertices can be inserted between existing vertices. Since they do not exist in the geometry, mid-vertices cannot be programmatically moved or deleted. They can be used to insert a new vertex interactively.

When a mid-vertex is selected, a GeometryEditorMidVertex is returned from GeometryEditor.selectedElement.

Since

200.1.0

Parameters

partIndex

The index of the part in the geometry editor's com.arcgismaps.geometry.Multipart geometry that contains the mid-vertex to be selected. Use a value of 0 for non-multipart geometry types - com.arcgismaps.geometry.Point and com.arcgismaps.geometry.Multipoint.

segmentIndex

The index of segment that the mid-vertex to be selected lies on, 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