My use case:
Single polyline is tagged with multiple lanes containing also a cycle lane.
How would I go about visualizing them side by side using Leaflet? Polyline is a set of GPS coordinates and I would like to have e.g. 3 polylines drawn where there is lane, lane, cycle lane.
I understand some kind of offsetting is required, but how do I go about calculating the offsetted GPS coordinates?
Any tips on plugins, algorithms, code examples are welcome. Since I am using Javascript, JS examples are preferred, but I can work with other languages as well.