Skip to main content
100%

Fork of Globe with Panning & Zooming

✓ Published0🌍 Public
Llingjizhu@gmail.com
Last edited Mar 27, 2024
Created on Mar 27, 2024

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 description

A globe with panning and zooming.

MIT Licensed

Similar vizzes