leaflet-polycolor (npm): Colorize each polyline segment separately
Keywords: leaflet|polyline|segment|color