This interactive globe visualization displays the global network of submarine communication cables, with each cable colored according to its properties. Users can drag to rotate the Earth and scroll to zoom, with the orthographic projection updating in real time. The visualization uses D3’s `geoOrthographic`, `geoPath`, `geoGraticule`, and `drag`/`zoom` APIs, with world geometry from TopoJSON and cable data from TeleGeography’s open-source repository. The rendering itself is straightforward SVG paths for countries, graticules, and lines.
AI-generated descriptionSweet spinny globe with submarine cables!
Data from TeleGeography's Submarine Cable Map (old GitHub fork). Note that this data is not up to date. For up to date data, see telegeography.com and submarinecablemap.com.
Mobile interaction
- A single-finger or mouse drag spins the globe.
- Touch input is handled explicitly: one finger pans, two fingers pinch-zoom. This avoids conflicts between d3-zoom's built-in touch handling and panning, which previously broke single-finger panning on mobile.
- Desktop wheel / trackpad input zooms around the pointer.
- Zoom is bounded relative to the initial fitted globe scale.
touch-action: noneprevents the browser from hijacking gestures over the globe.
Comments
Sign in to join the discussion.