lineBorderGradient

open override fun lineBorderGradient(lineBorderGradient: Expression): LineLayer

A gradient used to color the border of 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). Takes precedence over line-border-color. Has no effect unless line-border-width is greater than zero. Can only be used with GeoJSON sources that specify "lineMetrics": true.

Use static method LineLayer.defaultLineBorderGradient to set the default property.

Parameters

lineBorderGradient

value of lineBorderGradient


A gradient used to color the border of 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). Takes precedence over line-border-color. Has no effect unless line-border-width is greater than zero. Can only be used with GeoJSON sources that specify "lineMetrics": true.