lineGradient
The gradient to apply along the line.
Declaration
get lineGradient(): LineGradient | null;
set lineGradient(lineGradient: LineGradient | null);Discussion
If a style has both strokeColor and lineGradient definitions, MapKit JS displays the lineGradient. If you don’t define a color at the start or end location within the gradient, MapKit JS uses the style’s strokeColor as the default.