How to use the arc.Coord function in arc

To help you get started, we’ve selected a few arc examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github chelm / grunt-geo / tasks / geo.js View on Github external
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();
github chelm / grunt-geo / tasks / geo.js View on Github external
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();