Line with Stroke Gradient

This sample shows how to apply a stroke gradient to a line on the map. In order to apply this feature to a line, the data source must have the lineMetrics option set to true.