How to draw path superposition with different color on leaflet.js?
问题 I would like to draw several paths from same coordinates on a leaflet.js map. I have thought about making the gap between paths with trigonometric computations, but it's too complex to deal with teh zoom level, translate GPS coordinates to a vector, etc. The drawing I have now is like this (another path is under the green path): And I would like something like that: Of course, the coordinates, angle and zoomlevel can change. 回答1: You would probably be interested in Leaflet Polyline Offset