PolygonLayer class Layers

A Polygon layer.

Inheritance
Annotations

Constructors

PolygonLayer({required List<Feature<Polygon>> polygons, Color color = const Color(0xFF000000), Color outlineColor = const Color(0xFF000000), double minZoom = 0, double maxZoom = 24})
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<Feature<Polygon>>
The List of geometry features.
finalinherited
maxZoom double
The maximum zoom level that the Layer is displayed.
finalinherited
minZoom double
The minimum zoom level that the Layer is displayed.
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