Skip to content

Instantly share code, notes, and snippets.

@Luna197
Luna197 / README.md
Created July 9, 2019 10:58 — forked from MaciejKus/README.md
d3 map with states and countries

A d3 world map which shows the states of Canada and the USA on zoom. Also has rotation, but only when scale is set to 1 (zoomed out).

I combined a world topo.json file with a states topo.json file using something like this:

node_modules/.bin/topojson --allow-empty -p name -o combined2.json -- data/countries.topo.json data/states_usa.topo.json