Skip to main content
100%

Fork of D3 map drag demo

✓ Published0🌍 Public
RrayaneB0t
Last edited Mar 12, 2023
Created on Mar 12, 2023
Forked from D3 map drag demo

This example shows an interactive orthographic globe rendered with SVG, where users can drag to rotate the Earth and see country boundaries and graticule lines. The code uses `d3.geoOrthographic` for projection and `d3.geoPath` to draw geographic features from TopoJSON data sourced from the world-atlas package. Drag events update the projection’s rotation, while zoom is handled via `d3.zoom`. Country names are loaded from a TSV file and displayed as tooltips using SVG `<title>` elements.

AI-generated description
MIT Licensed

Similar vizzes