🌍 Public
Viewing a saved revision (read-only)
b88a0273ef3c46f68e43c4c835ec3330
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