Skip to main content
100%

Globe with Panning & Zooming

✓ Published0🌍 Public
NNelson M
Last edited Mar 27, 2024
Created on Mar 27, 2024

This example shows an interactive orthographic globe of the world that supports panning and zooming. It displays country outlines and graticules, rendered with the d3-geo projection system and the geoPath and geoGraticule APIs. The visualization loads GeoJSON country data from a remote TopoJSON file. Users can drag to rotate the globe, which updates the projection’s rotation, and scroll to zoom, which adjusts the scale around a fitted initial view. The code relies on d3-drag and d3-zoom behaviors to handle these interactions.

AI-generated description

A globe with panning and zooming.

MIT Licensed

Similar vizzes