ShapeToolType enum

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

Inheritance

Constructors

ShapeToolType()
const

Values

arrow → const ShapeToolType

Allows you to drag on a map view to define the corners of a bounding box within which an arrow-shaped geometry fits.

The created arrow shape is aligned along the horizontal axis, pointing in the direction of the drag. To create arrows pointing in other directions, ensure InteractionConfiguration.allowRotatingSelectedElement and InteractionConfiguration.allowPartSelection are true to allow interactive selection and rotation to the desired direction.

ellipse → const ShapeToolType

Allows you to drag on a map view to define the center point and a point on the circumference of an ellipse-shaped geometry.

To create a circular shape, use this value in combination with a ShapeTool.configuration InteractionConfiguration.scaleMode value of GeometryEditorScaleMode.uniform. Geometries created using this type are not represented by true curves but rather consist of a series of straight lines (Geometry.hasCurves is false).

rectangle → const ShapeToolType

Allows you to drag on a map view to define the corners of a bounding box within which a rectangle-shaped geometry fits.

To create a square shape, use this value in combination with a ShapeTool.configuration InteractionConfiguration.scaleMode value of GeometryEditorScaleMode.uniform. Geometries created using this type are either polygons or polylines, depending on the parameter passed to GeometryEditor.startWithGeometryType - it cannot create an Envelope geometry.

triangle → const ShapeToolType

Allows you to drag on a map view to define the center point and a corner of a triangle-shaped geometry.

The created triangle shape is aligned along the vertical axis, pointing opposite to the direction of the drag. To create triangles pointing in other directions, ensure InteractionConfiguration.allowRotatingSelectedElement and InteractionConfiguration.allowPartSelection are true to allow interactive selection and rotation to the desired direction.

To create an equilateral triangle, use this value in combination with a ShapeTool.configuration InteractionConfiguration.scaleMode value of GeometryEditorScaleMode.uniform.

Properties

coreValue → RT_ShapeToolType
no setter
hashCode int
The hash code for this object.
no setterinherited
index int
A numeric identifier for the enumerated value.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited

Constants

values → const List<ShapeToolType>
A constant List of the values in this enum, in order of their declaration.