VertexTool

Allows you to edit geometries in a GeometryEditor by interacting with individual vertices. The default GeometryEditor.tool is a VertexTool, and is suitable for creating and editing the widest range of geometry types - com.arcgismaps.geometry.Multipoint, com.arcgismaps.geometry.Point, com.arcgismaps.geometry.Polygon, and com.arcgismaps.geometry.Polyline. You create and edit these geometries by creating, selecting, and transforming individual vertices, and can also select and transform parts of com.arcgismaps.geometry.Multipart (polygon and polyline) geometries. Use the VertexTool.configuration properties to customize the possible interactions.

If your app targets touch screen devices, you may want to consider using the ReticleVertexTool instead.

Since

200.1.0

See also

Constructors

Link copied to clipboard
constructor()

Creates a new VertexTool. By default, this tool enables the creation, selection, transformation, and deletion interactions appropriate for creating and editing geometries by interacting with individual vertices. This behavior can be customized with VertexTool.configuration.

Properties

Link copied to clipboard

Defines the set of interactive operations enabled when using this tool. By default, the VertexTool.configuration allows you to create and select vertices by tapping on the map, and also allows you to move vertices by dragging the selected vertex.

Inherited properties

Link copied to clipboard

Defines the visual appearance of GeometryEditor geometries when this tool is in use. When a GeometryEditorTool is created, a consistent set of default symbology appropriate for that tool type is applied to its GeometryEditorTool.style property. For example, FreehandTool and ShapeTool define all vertex symbols as null by default because they use drag gestures to define entire parts of polyline and polygon geometries, whereas the VertexTool defines non-null vertex symbols because it is important to be able to see and interact with individual vertices when editing geometries with this tool.