Skip to main content
100%

Fork of Globe with Panning & Zooming

✓ Published0🌍 Public
Ffadingcode9@gmail.com
Last edited Apr 12, 2024
Created on Apr 12, 2024

This example shows an interactive orthographic globe that users can pan by dragging and zoom by scrolling. It renders country boundaries from a TopoJSON world atlas using D3’s `geoOrthographic` projection and `geoPath`, with a graticule and sphere outline for context. Panning adjusts the rotation through `drag`, while zooming updates the projection scale via `zoom`, with state managed externally to preserve the view between interactions.

AI-generated description

A globe with panning and zooming.

MIT Licensed

Similar vizzes