TextVariableAnchor enum

To increase the chance of placing high-priority labels on the map, you can provide an array of text-anchor locations: the renderer will attempt to place the label at each location, in order, before moving onto the next label. Use text-justify: auto to choose justification based on anchor position. To apply an offset, use the text-radial-offset or the two-dimensional text-offset.

Inheritance
Available extensions

Values

CENTER → const TextVariableAnchor

The center of the text is placed closest to the anchor.

LEFT → const TextVariableAnchor

The left side of the text is placed closest to the anchor.

The right side of the text is placed closest to the anchor.

TOP → const TextVariableAnchor

The top of the text is placed closest to the anchor.

BOTTOM → const TextVariableAnchor

The bottom of the text is placed closest to the anchor.

TOP_LEFT → const TextVariableAnchor

The top left corner of the text is placed closest to the anchor.

TOP_RIGHT → const TextVariableAnchor

The top right corner of the text is placed closest to the anchor.

BOTTOM_LEFT → const TextVariableAnchor

The bottom left corner of the text is placed closest to the anchor.

BOTTOM_RIGHT → const TextVariableAnchor

The bottom right corner of the text is placed closest to the anchor.

Properties

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<TextVariableAnchor>
A constant List of the values in this enum, in order of their declaration.