moveSelectedElement

fun moveSelectedElement(deltaX: Double, deltaY: Double)

Moves the selected element by the specified distances along the x-axis and y-axis.

Since

200.1.0

Parameters

deltaX

The distance to move the selected element along the x-axis, in the units of the associated com.arcgismaps.mapping.view.MapView spatial reference.

deltaY

The distance to move the selected element along the y-axis, in the units of the associated com.arcgismaps.mapping.view.MapView spatial reference.

See also

Throws

if any of the given values are NaN or infinity

if there is no element currently selected


fun moveSelectedElement(newPoint: Point)

Moves the selected element to the specified location. If GeometryEditor.selectedElement is a GeometryEditorVertex, then the location of the vertex is moved to the given point. If the GeometryEditor.selectedElement is any other type of GeometryEditorElement, then the center of the element is moved to the given point.

Since

200.1.0

Parameters

newPoint

The new location for the selected element.

See also

Throws

if the given point is empty

if there is no element currently selected