Route
This sample shows how to apply a stroke gradient to a line on the map.
Usage:
The data source must have the lineMetrics option set to true.

Code:
Source CodeThis sample shows how to apply a stroke gradient to a line on the map.
The data source must have the lineMetrics option set to true.
