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 point is z-aware (Geometry.hasZ = true), this method will change the GeometryEditor.geometry to be z-aware, if it is not already.
If GeometryEditor.geometry is a non-empty ArcGISPoint, this method replaces the existing point with the given point and selects it.
If the GeometryEditor.selectedElement is the Segment.startPoint of a curve segment (Segment.isCurve = true), the new vertex will be inserted after the selected element and the existing curve segment will be replaced by two line segments. Alternatively, if it is the first vertex in a part of a Multipart, the new vertex is inserted before the currently selected vertex.
Parameters:
point— The location of the new vertex.