🌍 Public
Viewing a saved revision (read-only)
2a94e8167e8e457fa035bcd087e678e5
Fork of Fork of Spinning Globe
This example presents an orthographic projection of the world as a spinning globe, with country borders and labels rendered on a dark background. The animation continuously rotates the globe using requestAnimationFrame, while a custom function calculates point visibility to ensure labels only appear on the visible hemisphere. The code uses D3’s `geoOrthographic`, `geoPath`, and `geoGraticule` for map rendering, and `topojson-client` to parse the Natural Earth data from visionscarto-world-atlas. India is deliberately filtered out from the country features.
AI-generated descriptionMIT Licensed