Companion

object Companion

Static variables and methods.

Properties

Link copied to clipboard

Blur applied to the line, in pixels.

Link copied to clipboard

Blur applied to the line, in pixels.

Link copied to clipboard

Transition options for LineBlur.

Link copied to clipboard

The color of the line border. If line-border-width is greater than zero and the alpha value of this color is 0 (default), the color for the border will be selected automatically based on the line color.

Link copied to clipboard

The color of the line border. If line-border-width is greater than zero and the alpha value of this color is 0 (default), the color for the border will be selected automatically based on the line color.

Link copied to clipboard

The color of the line border. If line-border-width is greater than zero and the alpha value of this color is 0 (default), the color for the border will be selected automatically based on the line color.

Link copied to clipboard

Transition options for LineBorderColor.

Link copied to clipboard

The width of the line border. A value of zero means no border.

Link copied to clipboard

The width of the line border. A value of zero means no border.

Link copied to clipboard

Transition options for LineBorderWidth.

Link copied to clipboard

The display of line endings.

Link copied to clipboard

The display of line endings.

Link copied to clipboard

The color with which the line will be drawn.

Link copied to clipboard

The color with which the line will be drawn.

Link copied to clipboard

The color with which the line will be drawn.

Link copied to clipboard

Transition options for LineColor.

Link copied to clipboard

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.

Link copied to clipboard

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.

Link copied to clipboard

Decrease line layer opacity based on occlusion from 3D objects. Value 0 disables occlusion, value 1 means fully occluded.

Decrease line layer opacity based on occlusion from 3D objects. Value 0 disables occlusion, value 1 means fully occluded.

Transition options for LineDepthOcclusionFactor.

Link copied to clipboard

Controls the intensity of light emitted on the source features. This property works only with 3D light, i.e. when lights root property is defined.

Link copied to clipboard

Controls the intensity of light emitted on the source features. This property works only with 3D light, i.e. when lights root property is defined.

Link copied to clipboard

Transition options for LineEmissiveStrength.

Link copied to clipboard

Draws a line casing outside of a line's actual path. Value indicates the width of the inner gap.

Link copied to clipboard

Draws a line casing outside of a line's actual path. Value indicates the width of the inner gap.

Link copied to clipboard

Transition options for LineGapWidth.

Link copied to clipboard

The display of lines when joining.

Link copied to clipboard

The display of lines when joining.

Link copied to clipboard

Used to automatically convert miter joins to bevel joins for sharp angles.

Link copied to clipboard

Used to automatically convert miter joins to bevel joins for sharp angles.

Link copied to clipboard

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.

Link copied to clipboard

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.

Link copied to clipboard

Transition options for LineOffset.

Link copied to clipboard

The opacity at which the line will be drawn.

Link copied to clipboard

The opacity at which the line will be drawn.

Link copied to clipboard

Transition options for LineOpacity.

Link copied to clipboard

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.

Link copied to clipboard

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.

Link copied to clipboard

Used to automatically convert round joins to miter joins for shallow angles.

Link copied to clipboard

Used to automatically convert round joins to miter joins for shallow angles.

Link copied to clipboard

Sorts features in ascending order based on this value. Features with a higher sort key will appear above features with a lower sort key.

Link copied to clipboard

Sorts features in ascending order based on this value. Features with a higher sort key will appear above features with a lower sort key.

Link copied to clipboard

The geometry's offset. Values are x, y where negatives indicate left and up, respectively.

Link copied to clipboard

Controls the frame of reference for line-translate.

Link copied to clipboard

Controls the frame of reference for line-translate.

Link copied to clipboard

The geometry's offset. Values are x, y where negatives indicate left and up, respectively.

Link copied to clipboard

Transition options for LineTranslate.

Link copied to clipboard

The line part between trim-start, trim-end will be marked as transparent to make a route vanishing effect. The line trim-off offset is based on the whole line range 0.0, 1.0.

Link copied to clipboard

The line part between trim-start, trim-end will be marked as transparent to make a route vanishing effect. The line trim-off offset is based on the whole line range 0.0, 1.0.

Link copied to clipboard

Stroke thickness.

Link copied to clipboard
Link copied to clipboard

Transition options for LineWidth.

Link copied to clipboard

The maximum zoom level for the layer. At zoom levels equal to or greater than the maxzoom, the layer will be hidden.

Link copied to clipboard

The minimum zoom level for the layer. At zoom levels less than the minzoom, the layer will be hidden.

Link copied to clipboard

Visibility of the layer.