I am trying to add multiple great circle lines between the markers in the same map container. I managed to show one with greatCircle in turf.js.
for(var i = 0; i < 2 ;i++) {
var getStart = json.features[0].geometry.coordinates[0];
var getEnd = json.features[0].geometry.coordinates[1];
//console.log(getStart)
//console.log(getEnd)
var start = turf.point(getStart);
var end = turf.point(getEnd);
var data = turf.greatCircle(start, end);
console.log(data)
}
Is it possible to list all of them and applying Turf.js?
Here is my JsFiddle.
