Skip to main content
100%

Globe with panning & zooming

✓ Published1🌍 Public
SShad Frigui
Last edited Sep 5, 2024
Created on Aug 23, 2024

This example presents an interactive globe that users can pan and zoom, rendered using a D3 orthographic projection. Landmasses and internal country borders are drawn from the visionscarto-world-atlas TopoJSON dataset via `d3.geoOrthographic` and `geoPath`. The globe responds to drag interactions for rotation and mouse-wheel zoom events, adjusting the projection’s rotation and scale through `d3.drag` and `d3.zoom` handlers. A fitted initial view establishes the default scale, while the sphere, land, and country-mesh features are styled via CSS classes.

AI-generated description

A globe with panning and zooming.

MIT Licensed

Similar vizzes