Advanced Line Styling to visualize the direction of Routes and Tours

We were asked how to indicate the direction for a route or a tour using the shape layer. We’ve built a sample for it which demonstrates two options:

1. Use a stroked MapPolyline and animate the StrokeDashOffset property. This technique is also used at the RoutingDemo of the demo center application.
2. Implement a custom MapShape which renders little arrows along the polyline. This technique is a little bit more complex, because you have to calculate the arrow coordinates by yourself. I’ve implemented an ArrowDashLine class which handles this.
AdvancedLineStyles Download application, x-zip-compressed::

To indicate the directions of transports, you can also take a look at MapArrowDemo explained here.

For any questions please contact the PTV xServer Support Team.