Page 1 of 1

Polyline with gradient line

Posted: Fri Nov 08, 2024 10:32 am
by Bernd Welter
Hello Oliver,

On the EV route planner showcase I've seen some gradient polyline:
gradient polyline.png
Can I apply such a style to a Ptv.XServer.Controls.Map.Layers.Shapes.MapPolyline?
How?

Bernd

Re: Polyline with gradient line

Posted: Fri Nov 08, 2024 2:20 pm
by Oliver Heilig
Hi Bernd,

i don't know this app in detail, but i would guess it uses MapLibre gadient lines. You can do fancy stuff with MapLibre ;)

For WPF i found an old article from Charles Petzold, which in theory could be applied to the map control. There's another sample for custom poly lines with arrows along the line. I guess it could be adopted for gradients in a similar fashion. But this would require some deeper knowledge of the Control/WPF.