Umap: different colors within a single line segment?

I am mapping some bike routes in uMap, and am using colors to indicate different levels of infrastructure. Currently if a single route has several different biking conditions, I have to create a new line object for each type of condition, breaking the route into several discrete objects, each with separate info pop ups.

Is there any way to set different colors for different segments of the same polyline object, so the route can be all one object but still indicate different conditions along the path?