PolygonLabelPlacement enum

Defines the algorithm used to calculate the position of the Polygon label.

Important

If polygons may be over the anti-meridan boundary, PolygonLabelPlacementCalculator.simpleMultiWorldCentroid must be used - other calculators will produce unexpected results.

Inheritance
Available extensions
Annotations
  • @Deprecated('Use `Polygon.labelPlacementCalculator` with the equivalent calculator ' 'instead. ' 'This enables more flexibility and extensibility. ' 'This was deprecated after v8.2.0, and will be removed in a future version.')

Values

centroid → const PolygonLabelPlacement

Alias for PolygonLabelPlacementCalculator.centroid

The new PolygonLabelPlacementCalculator.centroid algorithm has differing behaviour than the old one. To remain using the existing behaviour, use PolygonLabelPlacementCalculator.simpleCentroid.

centroidWithMultiWorld → const PolygonLabelPlacement

Alias for PolygonLabelPlacementCalculator.simpleMultiWorldCentroid

polylabel → const PolygonLabelPlacement

Alias for PolygonLabelPlacementCalculator.polylabel

Properties

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