LineLayer class

A stroked line.

Inheritance

Constructors

LineLayer({required dynamic id, dynamic visibility, dynamic minZoom, dynamic maxZoom, required String sourceId, String? sourceLayer, LineCap? lineCap, LineJoin? lineJoin, double? lineMiterLimit, double? lineRoundLimit, double? lineSortKey, double? lineBlur, int? lineColor, List<double?>? lineDasharray, double? lineGapWidth, int? lineGradient, double? lineOffset, double? lineOpacity, String? linePattern, List<double?>? lineTranslate, LineTranslateAnchor? lineTranslateAnchor, List<double?>? lineTrimOffset, double? lineWidth})

Properties

hashCode int
The hash code for this object.
no setterinherited
id String
The ID of the Layer.
getter/setter pairinherited
lineBlur double?
Blur applied to the line, in pixels.
getter/setter pair
lineCap LineCap?
The display of line endings.
getter/setter pair
lineColor int?
The color with which the line will be drawn.
getter/setter pair
lineDasharray List<double?>?
Specifies the lengths of the alternating dashes and gaps that form the dash pattern. The lengths are later scaled by the line width. To convert a dash length to pixels, multiply the length by the current line width. Note that GeoJSON sources with lineMetrics: true specified won't render dashed lines to the expected scale. Also note that zoom-dependent expressions will be evaluated only at integer zoom levels.
getter/setter pair
lineGapWidth double?
Draws a line casing outside of a line's actual path. Value indicates the width of the inner gap.
getter/setter pair
lineGradient int?
Defines a gradient with which to color a line feature. Can only be used with GeoJSON sources that specify "lineMetrics": true.
getter/setter pair
lineJoin LineJoin?
The display of lines when joining.
getter/setter pair
lineMiterLimit double?
Used to automatically convert miter joins to bevel joins for sharp angles.
getter/setter pair
lineOffset double?
The line's offset. For linear features, a positive value offsets the line to the right, relative to the direction of the line, and a negative value to the left. For polygon features, a positive value results in an inset, and a negative value results in an outset.
getter/setter pair
lineOpacity double?
The opacity at which the line will be drawn.
getter/setter pair
linePattern String?
Name of image in sprite to use for drawing image lines. For seamless patterns, image width must be a factor of two (2, 4, 8, ..., 512). Note that zoom-dependent expressions will be evaluated only at integer zoom levels.
getter/setter pair
lineRoundLimit double?
Used to automatically convert round joins to miter joins for shallow angles.
getter/setter pair
lineSortKey double?
Sorts features in ascending order based on this value. Features with a higher sort key will appear above features with a lower sort key.
getter/setter pair
lineTranslate List<double?>?
The geometry's offset. Values are x, y where negatives indicate left and up, respectively.
getter/setter pair
lineTranslateAnchor LineTranslateAnchor?
Controls the frame of reference for line-translate.
getter/setter pair
lineTrimOffset List<double?>?
The line trim-off percentage range based on the whole line gradinet range 0.0, 1.0. The line part between trim-start, trim-end will be marked as transparent to make a route vanishing effect. If either 'trim-start' or 'trim-end' offset is out of valid range, the default range will be set.
getter/setter pair
lineWidth double?
Stroke thickness.
getter/setter pair
maxZoom double?
The maximum zoom level for the layer. At zoom levels equal to or greater than the maxzoom, the layer will be hidden.
getter/setter pairinherited
minZoom double?
The minimum zoom level for the layer. At zoom levels less than the minzoom, the layer will be hidden.
getter/setter pairinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
sourceId String
The id of the source.
getter/setter pair
sourceLayer String?
A source layer is an individual layer of data within a vector source. A vector source can have multiple source layers.
getter/setter pair
visibility Visibility?
The visibility of the layer.
getter/setter pairinherited

Methods

getType() String
Get the type of current layer as a String.
override
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

decode(String properties) LineLayer