Skip to main content
100%

Spinning Globe

✓ Published0🌍 Public
SShad Frigui
Last edited Aug 21, 2024
Created on Aug 21, 2024
Forked from Spinning Globe

This example shows a world map projected onto a rotating globe, using an orthographic projection to create a 3D effect. It displays the graticule and country boundaries with a simple, clean visual style. The code uses `d3.geoOrthographic` and `d3.geoPath` to render the map, and `d3.geoGraticule` for the grid lines. It loads country data from a TopoJSON file via `topojson-client` and manages rotation through state. The animation is implemented using `requestAnimationFrame` to update the rotation values, though it is currently disabled.

AI-generated description
MIT Licensed

Similar vizzes