LineGradient

A gradient used to color a line feature at various distances along its length. Defined using a step or interpolate expression which outputs a color for each corresponding line-progress input value. line-progress is a percentage of the line feature's total length as measured on the webmercator projected coordinate plane (a number between 0 and 1). Can only be used with GeoJSON sources that specify "lineMetrics": true.

Parameters

value

the property wrapped in Value to be used with native renderer.

Constructors

Link copied to clipboard
fun LineGradient(expression: Expression)

Construct the LineGradient with Mapbox Expression.

Link copied to clipboard
fun LineGradient(value: Value)

Types

Link copied to clipboard
object Companion

Public companion object.

Properties

Link copied to clipboard