Skip to content

Latest commit

 

History

History
37 lines (25 loc) · 1.12 KB

README.md

File metadata and controls

37 lines (25 loc) · 1.12 KB

earth-topojson stable

TopoJSON files of the Earth sourced from Natural Earth.

Usage

NPM

Load the TopoJSON files using the following:

var highRes = require('earth-topojson/10m.json')
var normRes = require('earth-topojson/50m.json')
var lowRes = require('earth-topojson/110m.json')
var lowRes = require('earth-topojson')

You can then use the topojson package on npm to convert those files into GeoJSON:

var world = require('earth-topojson')
var topojson = require('topojson')

var countries = topojson.feature(world, world.objects.countries)

See Also

License

MIT. See LICENSE.md for details.