Viewing a saved revision (read-only)
ZO6FZxiW7Qz-JH7_G6UEg
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.
Submarine cable globe
Orthographic canvas globe of world countries and submarine cables.
Controls
- Desktop: drag to rotate, scroll wheel / trackpad to zoom.
- Mobile: one finger drags to rotate, two-finger pinch to zoom. Pinch zoom continues from the current zoom level on every new pinch.
The soft canvas glow (shadowBlur) is drawn only while the
globe is idle. It is turned off during drag, wheel zoom, and
pinch so interaction frames stay cheaper, then restored once
input stops.
The globe is responsive: a ResizeObserver watches the
container and refits the orthographic projection (scale and
translation) whenever the viewport changes size, keeping the
sphere centered and fully visible. Scrollbars are hidden;
the globe fills the viewport.
References
- Visualization f35de7cc21b24c4587925fb490010372 — pointer-driven pan concept.
- Visualization 32bc413948dc4a068721bed7bf256f9c — wheel/pinch zoom concept.
- Visualization 5737ddd8a905467da667cfb9fe26e2d7
—
ResizeObserver-driven responsive container sizing.