Skip to main content
100%

Spinning Globe

✓ Published0🌍 Public
JJoel Jäggli
Last edited Dec 22, 2024
Created on Dec 22, 2024
Forked from Spinning Globe

A spinning globe uses an orthographic projection to display world country boundaries from a TopoJSON file. The globe rotates continuously around its vertical axis as the projection’s rotation state updates on each animation frame via `requestAnimationFrame`. The code applies `d3.geoOrthographic`, `d3.geoPath`, and `d3.geoGraticule` to draw country paths, a graticule, and a sphere outline, with state managed through setState and cleanup.

AI-generated description

A spinning globe!

See also:

MIT Licensed

Similar vizzes