Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
points.forEach(function( p ){
if ( !p.center ){
var start = new arc.Coord( p.lng, p.lat );
var end = new arc.Coord( centerPoint.lng, centerPoint.lat );
var gc = new arc.GreatCircle( start, end, { 'marker-color': '#555555'} );
var line = gc.Arc(20);
lines.push(line.json());
}
});
callback();
points.forEach(function( p ){
if ( !p.center ){
var start = new arc.Coord( p.lng, p.lat );
var end = new arc.Coord( centerPoint.lng, centerPoint.lat );
var gc = new arc.GreatCircle( start, end, { 'marker-color': '#555555'} );
var line = gc.Arc(20);
lines.push(line.json());
}
});
callback();