This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* A node.js script that uses D3 and topojson to calculate and output the lat/long | |
* coordinates of the centroid for a collection of topojson boundary features. | |
*/ | |
// install using npm install d3 | |
var d3 = require("d3"); | |
// download from http://d3js.org/topojson.v1.min.js | |
var topojson = require("./topojson.v1.min.js"); | |
// load json |
NewerOlder