Skip to content

hughsk/earth-topojson

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

🌏 TopoJSON files of the Earth sourced from Natural Earth

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published