earth-topojson

TopoJSON files of the Earth sourced from Natural Earth

Usage no npm install needed!

<script type="module">
  import earthTopojson from 'https://cdn.skypack.dev/earth-topojson';
</script>

README

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.