PolygonProperties<T extends Object> class
A class representing properties for rendering polygons on a map.
The PolygonProperties class encapsulates various properties for rendering
polygons, such as fill color, border color, label, stroke width, and more.
Example usage:
PolygonProperties properties = PolygonProperties(
fillColor: Colors.blue,
borderColor: Colors.red,
label: 'Polygon Label',
isFilled: true,
borderStokeWidth: 2,
);
Constructors
-
PolygonProperties({Map<
LayerPolygonIndexes, String> ? layerProperties, bool labeled = PolygonProperties.defLabeled, StrokePattern pattern = PolygonProperties.defIsDotted, PolygonLabelPlacementCalculator labelPlacementCalculator = PolygonProperties.defLabelPlacement, TextStyle labelStyle = PolygonProperties.defLabelStyle, bool rotateLabel = PolygonProperties.defRotateLabel, StrokeCap strokeCap = PolygonProperties.defStrokeCap, StrokeJoin strokeJoin = PolygonProperties.defStrokeJoin, Color? fillColor = PolygonProperties.defFillColor, String label = PolygonProperties.defLabel, T? hintValue, double borderStokeWidth = PolygonProperties.defBorderStokeWidth, Color borderColor = PolygonProperties.defBorderColor, bool disableHolesBorder = PolygonProperties.defDisableHolesBorder, bool isFilled = PolygonProperties.defIsFilled}) -
Creates a new
PolygonPropertiesinstance.const
Properties
- borderColor → Color
-
The border/stroke color of polygons.
final
- borderStokeWidth → double
-
The border/stroke width of polygons.
final
- disableHolesBorder → bool
-
Indicates whether holes should disable their border.
final
- fillColor → Color?
-
The fill color of polygons.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- hintValue → T?
-
hint value.
final
- isFilled → bool
-
final
- label → String
-
The label associated with polygons.
final
- labeled → bool
-
Indicates whether polygons are labeled.
final
- labelPlacementCalculator → PolygonLabelPlacementCalculator
-
The label placement for polygons.
final
- labelStyle → TextStyle
-
The label style for polygons.
final
-
layerProperties
→ Map<
LayerPolygonIndexes, String> ? -
The polygon layer properties.
final
- pattern → StrokePattern
-
Indicates whether polygons are rendered as dotted lines.
final
- rotateLabel → bool
-
Indicates whether labels should be rotated.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- strokeCap → StrokeCap
-
The stroke cap style for polygons.
final
- strokeJoin → StrokeJoin
-
The stroke join style for polygons.
final
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
Static Methods
-
fromMap<
T extends Object> (Map< String, dynamic> ? properties, PolygonProperties<T> polygonLayerProperties) → PolygonProperties<T> -
Creates a
PolygonPropertiesinstance from a map of properties.
Constants
- defBorderColor → const Color
- Default border/stroke color for polygons.
- defBorderStokeWidth → const double
- Default border/stroke width for polygons.
- defDisableHolesBorder → const bool
- Default value indicating whether holes should disable their border.
- defFillColor → const Color
- Default fill color for polygons.
- defIsDotted → const StrokePattern
- Default value indicating whether polygons are rendered as dotted lines.
- defIsFilled → const bool
- Default value indicating whether polygons should be filled.
- defLabel → const String
- Default label for polygons.
- defLabeled → const bool
- Default value indicating whether polygons are labeled.
- defLabelPlacement → const PolygonLabelPlacementCalculator
- Default label placement for polygons.
- defLabelStyle → const TextStyle
- Default label style for polygons.
- defRotateLabel → const bool
- Default value indicating whether labels should be rotated.
- defStrokeCap → const StrokeCap
- Default stroke cap style for polygons.
- defStrokeJoin → const StrokeJoin
- Default stroke join style for polygons.