Skip to content

Instantly share code, notes, and snippets.

@dnomadb
Created December 12, 2014 22:46
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dnomadb/9dfde7725486f1f812b1 to your computer and use it in GitHub Desktop.
Save dnomadb/9dfde7725486f1f812b1 to your computer and use it in GitHub Desktop.
initialize: function(options) {
this.version = '0.1.0';
this._R2D = 180 / Math.PI;
this._D2R = Math.PI / 180;
var latLng = this._compute(this.options.time || null);
gJSON.features[0].geometry.coordinates = [];
gJSON.features[0].geometry.coordinates[0] = latLng;
console.log(JSON.stringify(gJSON))
// fs.writeFileSync('test.geojson', JSON.stringify(gJSON));
},
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment