Blocky Counties
✓ Published0🌍 Public
Mmbostock
Last edited Feb 9, 2016
Created on Jan 2, 2013
Blocky Counties visualizes the projected bounding boxes of every US county as square-edged outlines instead of their true shapes. The map renders each county’s axis-aligned bounding rectangle computed from its projected geometry, producing a blocky, grid-like silhouette of the nation. The code uses d3.geo.path with an Albers USA projection, iterates over counties from a TopoJSON file, and builds SVG path data with `M`, `H`, `V`, and `Z` commands based on the bounds returned by `path.bounds`. The result is a stylized, abstract representation of county positions and extents.
AI-generated descriptionThis example uses path.bounds to draw the projected bounding box for each county. Compare to the lat-lon bounding box using d3.geo.bounds.
gpl-3.0 Licensed