lineTrimFadeRange

open override fun lineTrimFadeRange(lineTrimFadeRange: List<Double>): LineLayer

The fade range for the trim-start and trim-end points is defined by the line-trim-offset property. The first element of the array represents the fade range from the trim-start point toward the end of the line, while the second element defines the fade range from the trim-end point toward the beginning of the line. The fade result is achieved by interpolating between line-trim-color and the color specified by the line-color or the line-gradient property. Default value: 0,0. Minimum value: 0,0. Maximum value: 1,1.

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

Parameters

lineTrimFadeRange

value of lineTrimFadeRange


open override fun lineTrimFadeRange(lineTrimFadeRange: Expression): LineLayer

The fade range for the trim-start and trim-end points is defined by the line-trim-offset property. The first element of the array represents the fade range from the trim-start point toward the end of the line, while the second element defines the fade range from the trim-end point toward the beginning of the line. The fade result is achieved by interpolating between line-trim-color and the color specified by the line-color or the line-gradient property. Default value: 0,0. Minimum value: 0,0. Maximum value: 1,1.

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

Parameters

lineTrimFadeRange

value of lineTrimFadeRange as Expression


The fade range for the trim-start and trim-end points is defined by the line-trim-offset property. The first element of the array represents the fade range from the trim-start point toward the end of the line, while the second element defines the fade range from the trim-end point toward the beginning of the line. The fade result is achieved by interpolating between line-trim-color and the color specified by the line-color or the line-gradient property. Default value: 0,0. Minimum value: 0,0. Maximum value: 1,1.