🌍 Public
Viewing a saved revision (read-only)
0d506edd31344a928d5a8012b164ab06
World Map to US Map
This example visualizes a world map using the Natural Earth projection, drawing country boundaries as stroked paths over a graticule grid with an outline. It fetches TopoJSON data from the `visionscarto-world-atlas` package, converts it to GeoJSON using `topojson.feature`, and renders it with `d3.geoNaturalEarth1`, `d3.geoPath`, and `d3.geoGraticule`. The React-based code manages loading state via `setState`, updating the SVG when data arrives.
AI-generated descriptionA basic world map.
See also:
MIT Licensed