Skip to main content
100%

Zoom in Map Demo

✓ Published0🌍 Public
JJn1532
Last edited Mar 21, 2018
Created on Aug 10, 2016

Clicking a US state zooms to that state at 4× magnification, while clicking again resets the view. Clicking an individual county zooms in much deeper, to 23×, centering on that county. Built with D3 v3 and TopoJSON, the map renders US states and counties as SVG paths using an Albers USA projection, with smooth 750-millisecond transitions handled by D3's `transition` and `attr` methods. The data comes from a raw GitHub gist containing US TopoJSON topology.

AI-generated description

US map zoom in demo

gpl-3.0 Licensed

Similar vizzes