perliedman / leaflet-routing-machine

Control for routing in Leaflet
https://www.liedman.net/leaflet-routing-machine/
Other
1.06k stars 347 forks source link

Change the color of the line according to points. #607

Closed DeividyH closed 3 years ago

DeividyH commented 3 years ago

Example: From point A to point B blue, point B to point C red

perliedman commented 3 years ago

You need to override how the line layer is created using the routeLine option.