node package manager


Roll your own TopoJSON from the National Atlas one million-scale dataset.

U.S. Atlas TopoJSON

This repository provides a convenient mechanism for generating TopoJSON files from the Census Bureau’s cartographic boundary shapefiles, 2015 edition.


In a browser (using d3-geo and Canvas),

<!DOCTYPE html>
<canvas width="960" height="600"></canvas>
<script src=""></script>
<script src=""></script>
var context ="canvas").node().getContext("2d"),
    path = d3.geoPath().context(context);
d3.json("", function(error, us) {
  if (error) throw error;

In Node (using d3-geo and node-canvas),

var d3 = require("d3-geo"),
    topojson = require("topojson-client"),
    Canvas = require("canvas"),
    us = require("./node_modules/us-atlas/us/10m.json");
var canvas = new Canvas(960, 600),
    context = canvas.getContext("2d"),
    path = d3.geoPath().context(context);

File Reference

# us/10m.json <>

A TopoJSON topology containing three geometry collections: counties, states, and nation. The geometry is quantized, projected using d3.geoAlbersUsa to fit a 960×600 viewport, and simplified. This topology is derived from the Census Bureau’s cartographic county boundaries, 2015 edition. The state boundaries are computed by merging counties, and the nation boundary is computed by merging states, ensuring a consistent topology.

# us.objects.counties

# us.objects.states

# us.objects.nation