Border Distance
This visualization shows the distance from any point in the contiguous United States to the nearest border or coastline, using a sequence of concentric buffer strokes around the landmass. It approximates geographic distance by applying stroke widths in projected pixel coordinates, which the author notes is not perfectly accurate. The map is rendered with D3 v3, using `d3.geo.albersUsa` for projection and `d3.geo.path` to draw land and state borders from TopoJSON data. A color scale maps nine distance bands from yellow (near) to dark blue (far).
AI-generated descriptionA quick-and-dirty approximate visualization of distance from the U.S. border or coastline, whichever is closer. Unlike the coastal distance map, this is based on geographic distance rather than graph (topologic) distance.
This map is an approximation because distances shown are measured in projected coordinates (10px) rather than on the surface of the Earth, and no geographic projection preserves distances equally between all pairs of points. A more accurate approach would compute the border buffer shapes in spherical coordinates.
(Also, I’d rather have this map just show distance from the coast rather than the border, but that requires a bit more work, too!)