Is there a way to combine polylines on Leaflet?

249 views Asked by At

Context: I am building a map where train lines are displayed as polylines: enter image description hereenter image description here

What I want to achieve is that on the left, where the two lanes are merging, only one polyline is displayed, and potentially with changing colours depending on the number of polylines.

Is there a way to do that beyond splitting the 2 polylines in 3 with one different poly where there are 2 ?

0

There are 0 answers