India Subdistricts
✓ Published0🌍 Public
A spinning orthographic globe renders world country boundaries from TopoJSON data, with a graticule and sphere outline overlaid. The visualization animates rotation around the Y-axis using `requestAnimationFrame` to continuously update the projection’s rotation via `d3.geoOrthographic`. The code explicitly sets a fixed latitude tilt of -20 degrees while incrementally decreasing longitude each frame. Country paths are drawn using `d3.geoPath`, with the data sourced from the `visionscarto-world-atlas` package. The animation demonstrates how to combine `d3-geo` projections with reactive state 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