LabelGeometryStrategy enum
The strategy for how to use the geometry of the feature when calculating the label position.
Values
- automatic → const LabelGeometryStrategy
-
Labeling will use the default LabelGeometryStrategy depending on the feature type.
This behavior depends on Feature type:
- Polygon labels will use LabelGeometryStrategy.useGeometry
- Line labels will use LabelGeometryStrategy.useClippedGeometry
- useGeometry → const LabelGeometryStrategy
-
The feature's entire geometry will be used to calculate the position of the label.
This may result in a label not being visible because the preferred location is outside the extent. For example, a line label placed at the start or end of the line might be off-screen if the start or end of the feature geometry are off-screen.
- useClippedGeometry → const LabelGeometryStrategy
-
The subset of the feature's geometry within the screen extent will be used to calculate the position of the label.
The label is more likely to be visible on-screen, if there is room. However, the label may move position as the user pans the screen and different parts of the feature geometry are used to calculate the label position.
Properties
- coreValue → RT_LabelGeometryStrategy
-
Convert to internal value.
no setter
- hashCode → int
-
The hash code for this object.
no setterinherited
- index → int
-
A numeric identifier for the enumerated value.
no setterinherited
- name → String
-
Available on Enum, provided by the EnumName extension
The name of the enum value.no setter - 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<
LabelGeometryStrategy> - A constant List of the values in this enum, in order of their declaration.