Polyline with gradient line

Within this forum we want to offer discussions all around our .NET based Map control including all .Net-language specific questions concerning calls of the xServer-API. Attention: xServer-relevant concepts can be found in further forums such as xRoute or xTour.
Post Reply
User avatar
Bernd Welter
Site Admin
Posts: 2703
Joined: Mon Apr 14, 2014 10:28 am
Contact:

Polyline with gradient line

Post 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
Bernd Welter
Technical Partner Manager Developer Components
PTV Logistics - Germany

Bernd at... The Forum,LinkedIn, Youtube, StackOverflow
I like the smell of PTV Developer in the morning... :twisted:
User avatar
Oliver Heilig
Posts: 160
Joined: Tue May 13, 2014 12:10 pm
Location: Karlsruhe, Germany
Contact:

Re: Polyline with gradient line

Post 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.
Oliver Heilig
Chief Developer Logistic Services
PTV GROUP - Germany

https://github.com/oliverheilig/
Post Reply