Dash Leaflet: How to show direction on polylines

Hello,

I’m working on a map that connects points.

The connection between the points has a direction - think flow.

Is there some way that I can draw these lines in such a way that indicates direction without the need for a tooltip or popup? Like can I use an image overlay with arrows, or at least have dashes for one direction and dots for another, etc?

It looks like this PolylineDecorator package does the trick in javascript.

Is there a dash alternative?

Yes, that component is available in Dash too.

https://www.dash-leaflet.com/components/vector_layers/polyline_decorator

Awesome!

I guess “direction” is just determine by the order of the coordinate pairs(?)

Yes, I believe that’s how it works :blush: