Package-level declarations

Types

Link copied to clipboard

Allows you to edit geometries in a GeometryEditor by using freehand gestures. This tool is suitable for creating and editing Polygon and Polyline geometries. Each drag gesture creates a new part of the Multipart geometry.

Link copied to clipboard

Allows you to create new geometries, and change existing geometries, by interacting with a MapView. To use a GeometryEditor:

Link copied to clipboard

The base class for all selectable elements in a GeometryEditor. GeometryEditor.selectedElement returns an object that inherits from this base class, representing the specific type of element that is selected.

Link copied to clipboard

The element in a GeometryEditor representing the entire GeometryEditor.geometry. A GeometryEditorGeometry represents the entire geometry in a GeometryEditor - it displays the existing location and shape of the geometry, and allows you to select and move the entire geometry in interactive workflows. For more information about selecting and working with selections, see GeometryEditor.

Link copied to clipboard

A mid-vertex element in a GeometryEditor. Mid-vertices do not exist in the GeometryEditor.geometry, but instead exist only in the display. They are displayed between vertices in polygon and polyline geometries and are used in interactive workflows as a visual cue to indicate new vertices can be inserted between existing vertices. They may be most helpful for users with less editing experience. Tap on a mid-vertex to select it, and drag to change the mid-vertex into a vertex (GeometryEditorVertex) in the GeometryEditor.geometry and move it to the required location.

Link copied to clipboard

A Part element in a GeometryEditor editing a Multipart geometry. Polygons and polylines are Multipart geometries that can consist of one or more Part objects. A GeometryEditorPart represents a part of the geometry in a GeometryEditor - it displays the existing location and shape of the part, and allows you to select and move the part in interactive workflows. For more information about selecting and working with selections, see GeometryEditor.

Link copied to clipboard

Determines how a geometry can be interactively scaled (resized) while using the GeometryEditor. Set the InteractionConfiguration.scaleMode property to one of the values to determine interactive scaling behavior of a GeometryEditor. Additionally, this value also determines how the initial shape is created when using the ShapeTool.

Link copied to clipboard

Defines the visual appearance of a geometry displayed by the GeometryEditor. Each GeometryEditorTool has a GeometryEditorStyle which controls the appearance of the different elements of the GeometryEditor.geometry. You can change the symbology used for vertices, selections, lines and fills. For example, in a Feature editing workflow, you can set the GeometryEditorStyle.lineSymbol to match the symbol of a polyline feature in order to provide visual consistency.

Link copied to clipboard
sealed class GeometryEditorTool

A base class for tools that determine how you interact with a view when editing geometries with a GeometryEditor. Different types of GeometryEditorTool provide different ways of interacting with the view to create and edit geometries with a GeometryEditor. They control how an interaction (for example a tap or a drag gesture on the map view) uses the interaction position to update the GeometryEditor.geometry, or to navigate the map view. VertexTool, FreehandTool, and ShapeTool allow you to customize how the GeometryEditor reacts to each user interaction, allowing you to tailor the exact behavior appropriately for your users and workflow. GeometryEditorTool also determines the appearance of the GeometryEditor.geometry by specifying the GeometryEditorStyle used to draw the geometry in the view.

Link copied to clipboard

A vertex element in a GeometryEditor. Vertices represent points in a GeometryEditor.geometry. They display the existing location of the point, and are used in interactive workflows to allow you to select and move those points. For more information about selecting and working with selections, see GeometryEditor.

Link copied to clipboard

Defines the set of interactive operations you can enable or disable for a VertexTool, FreehandTool, or ShapeTool. An InteractionConfiguration allows you to customize the interactive geometry editing experience to suit your specific users. For example:

Link copied to clipboard

Allows you to create polygon or polyline geometries with a geometric shape by using a single drag interaction. Create a new shape tool using ShapeTool.create(ShapeToolType) and specify the type of shape to be created

Link copied to clipboard
sealed class ShapeToolType

The shapes that can be created by using a ShapeTool with a GeometryEditor.

Link copied to clipboard

Controls interactive snapping functionality for the GeometryEditor. Snapping allows you to create geometries that connect to each other and are coincident, so that interactive edits are more accurate, with fewer errors.

Link copied to clipboard
interface SnapSource

Indicates a source of geometries that a GeometryEditor could snap interactive edits to. SnapSource is implemented by objects that can provide a source of geometries to snap interactive edits to when using the GeometryEditor. For example, a feature layer can provide a set of geometries that you may want your users to snap to.

Link copied to clipboard

Configures a valid source of geometries that the GeometryEditor can snap interactive edits to. Following a call to SnapSettings.syncSourceSettings(), the SnapSettings.sourceSettings collection is populated with SnapSourceSettings objects that are valid for snapping. Each represents a SnapSource that is in the currently connected map and provides full resolution geometries suitable for snapping.

Link copied to clipboard

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 - Multipoint, Point, Polygon, and Polyline. You create and edit these geometries by creating, selecting, and transforming individual vertices, and can also select and transform parts of Multipart (polygon and polyline) geometries. Use the VertexTool.configuration properties to customize the possible interactions.