Contents

addColorStopAtIndex(index, color)

Adds a color transition at the index point in the list of points within a polyline.

Declaration

addColorStopAtIndex(index: number, color: string): void;

Parameters

  • index:

    A valid index into a polyline’s Points.

  • color:

    The CSS color at the index point.

Discussion

If the index is invalid, MapKit JS logs a warning to the console, but doesn’t change the object.

See Also

Creating a Line Gradient