See also
Parameters
Constructors
Types
Functions
Properties
A expression specifying conditions on source features. Only features that match the filter are displayed. Zoom expressions in filters are only evaluated at integer zoom levels. The feature-state
expression is not supported in filter expressions.
Properties of this layer.
This is an Expression representation of "line-blur".
Blur applied to the line, in pixels.
Transition options for LineBlur.
This is an Expression representation of "line-cap".
The display of line endings.
The color with which the line will be drawn.
This is an Expression representation of "line-color".
The color with which the line will be drawn.
Transition options for LineColor.
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.
This is an Expression representation of "line-dasharray".
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.
Transition options for LineDasharray.
Draws a line casing outside of a line's actual path. Value indicates the width of the inner gap.
This is an Expression representation of "line-gap-width".
Draws a line casing outside of a line's actual path. Value indicates the width of the inner gap.
Transition options for LineGapWidth.
Defines a gradient with which to color a line feature. Can only be used with GeoJSON sources that specify "lineMetrics": true
.
This is an Expression representation of "line-join".
The display of lines when joining.
Used to automatically convert miter joins to bevel joins for sharp angles.
This is an Expression representation of "line-miter-limit".
Used to automatically convert miter joins to bevel joins for sharp angles.
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.
This is an Expression representation of "line-offset".
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.
Transition options for LineOffset.
The opacity at which the line will be drawn.
This is an Expression representation of "line-opacity".
The opacity at which the line will be drawn.
Transition options for LineOpacity.
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.
This is an Expression representation of "line-pattern".
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.
Transition options for LinePattern.
Used to automatically convert round joins to miter joins for shallow angles.
This is an Expression representation of "line-round-limit".
Used to automatically convert round joins to miter joins for shallow angles.
Sorts features in ascending order based on this value. Features with a higher sort key will appear above features with a lower sort key.
This is an Expression representation of "line-sort-key".
Sorts features in ascending order based on this value. Features with a higher sort key will appear above features with a lower sort key.
The geometry's offset. Values are x, y where negatives indicate left and up, respectively.
Controls the frame of reference for line-translate
.
This is an Expression representation of "line-translate-anchor".
Controls the frame of reference for line-translate
.
This is an Expression representation of "line-translate".
The geometry's offset. Values are x, y where negatives indicate left and up, respectively.
Transition options for LineTranslate.
This is an Expression representation of "line-width".
Stroke thickness.
Transition options for LineWidth.
Source layer.
Visibility of the layer.