insertVertex method
- ArcGISPoint point
Creates a new vertex at the specified location and inserts it after the currently selected element, or appends the point if there is nothing selected.
If GeometryEditor.geometry is empty (Geometry.isEmpty is true), the given point is added as the initial vertex, and then selected. If nothing is selected (GeometryEditor.selectedElement is null), the point is appended to the end of the GeometryEditor.geometry, and then selected. If GeometryEditor.selectedElement is the first vertex in a part of a Multipart, the given point is inserted before the currently selected vertex, and then selected.
If GeometryEditor.geometry is a non-empty ArcGISPoint, this method replaces the existing point with the given point and selects it.
Parameters:
point
— The location of the new vertex.
Implementation
void insertVertex(
ArcGISPoint point,
) {
_withThrowingErrorHandler((errorHandler) {
runtimecore.RT_GeometryEditor_insertVertex(
_handle,
point._handle,
errorHandler,
);
});
}