🌍 Public
Viewing a saved revision (read-only)
ff9982002104441790f79a1c429b31e6
Let's Make a Map
This example shows a world map rendered as a three-dimensional globe using an orthographic projection. The sphere is filled dark blue, while country boundaries appear in light green with subtle black strokes, all drawn as SVG paths. The code uses d3.geoOrthographic and d3.geoPath to project and trace the map, with data loaded from the world-atlas TopoJSON file. TopoJSON’s feature method extracts country geometries, and each is appended as an SVG path inside a fixed 960×500 canvas.
AI-generated description