Skip to main content
100%

Globe with Panning & Zooming

✓ Published1🌍 Public
SShad Frigui
Last edited Sep 5, 2024
Created on Sep 5, 2024
Forked from Spinning Globe

This example presents an interactive orthographic globe that users can pan by dragging and zoom with the scroll wheel. The visualization renders landmasses and internal country borders, projecting the 3D sphere onto a 2D plane using d3.geoOrthographic and d3.geoPath. The globe's rotation and scale are controlled via d3.drag and d3.zoom, with panning sensitivity inversely tied to the current zoom level. World geometry comes from the visionscarto-world-atlas package, processed with topojson-client to extract features and meshes.

AI-generated description

A globe with panning and zooming.

MIT Licensed

Similar vizzes