Selecting which polyline is displayed on top in case of segment overlaps seems to be quite a FAQ, however, I would like to find a way to display overlapping polyline segments side-by-side, i.e. as multiple lines separated by offsets, similar to how Google Transit displays branching transit services.

Google Transit

Is there a Leaflet library that does that?

1 Answer 1


there appears to be one called Polyline Offset which should allow you to control the rendering of polylines.

There's a demo here and a screen shot of one of the other demos:-

enter image description here

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.