earth-topojson

1.0.0 • Public • Published

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.

Package Sidebar

Install

npm i earth-topojson

Weekly Downloads

16

Version

1.0.0

License

MIT

Last publish

Collaborators

  • hughsk