PolygonLayer class Layers
A Polygon layer.
Constructors
-
PolygonLayer.new({required List<
Polygon> polygons, Color color = const Color(0xFF000000), Color outlineColor = const Color(0xFF000000)}) -
Create a new PolygonLayer instance.
const
Properties
- color → Color
-
The color of the polygon. Defaults to black.
final
- hashCode → int
-
The hash code for this object.
no setteroverride
-
list
→ List<
Polygon> -
The List of layers.
finalinherited
- opacity → double
-
The opacity at which the polygon will be drawn.
no setter
- outlineColor → Color
-
The outline color
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
createStyleLayer(
int index) → StyleLayer -
Add the annotation layer to the map.
override
-
getLayerId(
int index) → String -
Get a unique layer id.
inherited
-
getLayout(
) → Map< String, Object> -
Build the layout properties.
override
-
getPaint(
) → Map< String, Object> -
Build the paint properties.
override
-
getSourceId(
int index) → String -
Get a unique source id.
inherited
-
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.
override