🌍 Public
Viewing a saved revision (read-only)
30663bdc840b4d89b5b91608b9be3fed
Let's make a map!
This example creates a world map by rendering GeoJSON country boundaries onto an SVG. It first draws a blue sphere background and then overlays light green country paths with subtle black strokes, using the Natural Earth projection. The code loads world topology data from the world-atlas package and converts it to GeoJSON using topojson’s `feature` method, then applies `d3.geoPath` with `geoNaturalEarth1` for projection. Both D3 and TopoJSON libraries are included via CDN.
AI-generated description