Stop d3 path crossing the map

Viewed 370

I have a d3 map that shows shipping lines. The lines are supplied as a list of coordinates that I have plotted using a projection and a d3 path. Pretty normal stuff. The problem is what happend if I want the path to go from, for example, -179°E to +179°E. Unfortunately it crosses the map. Is there any way to make it go off the left of the map and re-appear on the right of the map?

1 Answers
Related