-
I am rendering a path of a swim using maplibre-gl. Perhaps my approach is wrong, but I'm trying to color the path based on the pace of the swimmer. The way I chose to do this was to render a separate line (however short it may be) with the given pace color: What I found was that maplibre will remove some of these lines as a display optimization. When I zoom in, the missing segments appear: So my question is two-fold:
|
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
Without seeing your code it's very hard to tell what's wrong. I don't have any gaps, I'm drawing a single line and color it with "stops" by converting line progress to the relevant color up front. |
Beta Was this translation helpful? Give feedback.
-
Thanks, @HarelM! That's a good suggestion. I had been looking at stops as an alternative, but it seemed to me that it had to be a linear progression. Thank you for the tip! |
Beta Was this translation helpful? Give feedback.
Without seeing your code it's very hard to tell what's wrong.
I have a similar feature where I show the slope of a route using color where blue is downhill and red is uphill.
The code is here:
https://github.com/IsraelHikingMap/Site/blob/825d8336e24601b9c0b1f18e79e16c87c7989a5e/IsraelHiking.Web/src/application/components/route-statistics.component.ts#L1028
I don't have any gaps, I'm drawing a single line and color it with "stops" by converting line progress to the relevant color up front.