This post describes how to connect 2 locations on a map using great circle. Great circle represents the shortest distance between 2 locations. It is the first step to get a connection map.
path
. Basically, give it 2 set of coordinates and it will return a list of coordinates all along the great circle between them.console.log(path(link))
and you will see the svg path that has been generated.