Skip to main content
100%

Let's Make a Map

✓ Published1🌍 Public
PPabloReyesBetanzo
Last edited Nov 8, 2018
Created on Nov 8, 2018
Forked from Let's Make a Face

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
MIT Licensed

Similar vizzes