earth-topojson
v1.0.0
Published
TopoJSON files of the Earth sourced from Natural Earth
Downloads
25
Maintainers
Readme
earth-topojson
TopoJSON files of the Earth sourced from Natural Earth.
Usage
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.