Hello,
I am new at Leaflet. I want to draw all sort of polylines on a map and some of them would cross the imaginary Date Line meridian. I see the line connected to the opposite point, which theoretically is correct, but I need the short path.
Example:
var coord = [
[40, 179],
[40, -179]
];
var polyline = L.polyline(coord, {color: 'red', weight: 1}).addTo(map);
I dont want the line to cross all the globe (long path), the connection between those 2 points must be short, only 2 degrees long.
Is there a Map option to achieve that?
Thanks,
Chip