Border Mesh
✓ Published0🌍 Public
Mmbostock
Last edited Jan 26, 2017
Created on Jan 26, 2017
This example highlights California’s borders with its three neighboring states—Nevada, Arizona, and Oregon—using a U.S. states map rendered as SVG. It uses `d3.geoPath()` to draw the states and `topojson.mesh` with a custom filter function to isolate the shared boundary arcs, which are then stroked in cyan, magenta, and yellow. The underlying state geometries come from a TopoJSON file (`us-10m.v1.json`), and the code also adds a faint white stroke for all state boundaries.
AI-generated descriptionThis example uses topojson.mesh to highlight California’s borders with its three neighboring states.
gpl-3.0 Licensed