LineLayerProperties class

Implemented types

Constructors

LineLayerProperties({dynamic lineOpacity, dynamic lineColor, dynamic lineTranslate, dynamic lineTranslateAnchor, dynamic lineWidth, dynamic lineGapWidth, dynamic lineOffset, dynamic lineBlur, dynamic lineDasharray, dynamic linePattern, dynamic lineGradient, dynamic lineCap, dynamic lineJoin, dynamic lineMiterLimit, dynamic lineRoundLimit, dynamic lineSortKey, dynamic visibility})
const
LineLayerProperties.fromJson(Map<String, dynamic> json)
factory

Properties

hashCode int
The hash code for this object.
no setterinherited
lineBlur → dynamic
Blur applied to the line, in pixels.
final
lineCap → dynamic
The display of line endings.
final
lineColor → dynamic
The color with which the line will be drawn.
final
lineDasharray → dynamic
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.
final
lineGapWidth → dynamic
Draws a line casing outside of a line's actual path. Value indicates the width of the inner gap.
final
lineGradient → dynamic
Defines a gradient with which to color a line feature. Can only be used with GeoJSON sources that specify "lineMetrics": true.
final
lineJoin → dynamic
The display of lines when joining.
final
lineMiterLimit → dynamic
Used to automatically convert miter joins to bevel joins for sharp angles.
final
lineOffset → dynamic
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.
final
lineOpacity → dynamic
The opacity at which the line will be drawn.
final
linePattern → dynamic
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.
final
lineRoundLimit → dynamic
Used to automatically convert round joins to miter joins for shallow angles.
final
lineSortKey → dynamic
Sorts features in ascending order based on this value. Features with a higher sort key will appear above features with a lower sort key.
final
lineTranslate → dynamic
The geometry's offset. Values are x, y where negatives indicate left and up, respectively.
final
lineTranslateAnchor → dynamic
Controls the frame of reference for line-translate.
final
lineWidth → dynamic
Stroke thickness.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
visibility → dynamic
Whether this layer is displayed.
final

Methods

copyWith(LineLayerProperties changes) LineLayerProperties
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() Map<String, dynamic>
override
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited