lineGradient
The gradient to apply along the line.
Declaration
lineGradient?: LineGradient;Discussion
If a style has both strokeColor and lineGradient definitions, lineGradient takes precedence and displays. If you don’t define a color at the start or end location within the gradient, MapKit JS uses the style’s strokeColor.