Fork of Spinning Globe
✓ Published0🌍 Public
This example shows a spinning orthographic globe with country boundaries and a graticule grid, rotating smoothly around its vertical axis with a fixed tilt. The animation updates the globe’s rotation state on each frame using `requestAnimationFrame`, and the map is rendered with `d3.geoOrthographic` and `d3.geoPath`. Country shapes come from TopoJSON data fetched from a world atlas, while a sphere outline and graticule are drawn using `d3.geoGraticule`. The code demonstrates incremental rotation updates and cleanup of animation frames.
AI-generated descriptionA spinning globe!
See also:
- d3-geo: projection.rotate
- Wikipedia: Aircraft principal axes
- MDN: Window.requestAnimationFrame()
- d3-geo, path - Documents the "Sphere" type used for the outline
MIT Licensed