🌍 Public
Viewing a saved revision (read-only)
f187f68d481d4520a98e9bef818f277b
Fork of Globe with Panning & Zooming
This example shows an interactive orthographic globe of the world, where users can click and drag to rotate the sphere and scroll to zoom in and out. The visualization displays country boundaries, a graticule, and an outline sphere, all rendered using the D3.js library. It leverages `d3.drag` for panning rotation and `d3.zoom` for scaling, with the globe’s projection updated via `d3.geoOrthographic` and `d3.geoPath`. Country data comes from the TopoJSON world atlas fetched from a CDN, with paths generated using `topojson.feature`.
AI-generated descriptionA globe with panning and zooming.
MIT Licensed