click-to-center
✓ Published0🌍 Public
Mmbostock
Last edited Feb 9, 2016
Created on Mar 26, 2012
Clicking any US state shifts the Albers USA projection so that state becomes the center of the map, with a smooth animated transition re-drawing all state boundaries and borders. The visualization uses D3 v3’s `d3.geo.path` with a `d3.geo.albersUsa` projection, TopoJSON for state geometry, and SVG paths with click handlers. A background click re-centers the map, while clicking the already-centered state also returns to the default view.
AI-generated descriptionPart of a series of examples. See:
gpl-3.0 Licensed