PolylineLayer class Layers
A LineString layer.
- Inheritance
-
- Object
- Layer<
LineString> - PolylineLayer
- Annotations
Constructors
-
PolylineLayer.new({required List<
LineString> polylines, Color color = const Color(0xFF000000), int width = 1, int gapWidth = 0, int blur = 0, List<int> ? dashArray}) -
Create a new PolylineLayer instance.
const
Properties
- blur → int
-
Blur applied to the line, in pixels. Defaults to 0.
final
- color → Color
-
The color of the polyline. Defaults to black
final
-
dashArray
→ List<
int> ? -
Specifies the lengths of the alternating dashes and gaps that form the
dash pattern. The lengths are later scaled by the line width.
final
- gapWidth → int
-
Stroke thickness.
final
- hashCode → int
-
The hash code for this object.
no setteroverride
-
list
→ List<
LineString> -
The List of layers.
finalinherited
- opacity → double
-
The opacity at which the polyline will be drawn.
no setter
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- width → int
-
Stroke thickness.
final
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