🌍 Public
Viewing a saved revision (read-only)
747a8f3fd3344524b662b06699e297e6
Fork of Globe with Panning & Zooming
This example shows an interactive orthographic globe that can be panned by dragging and zoomed with the mouse wheel. A graticule and country outlines are rendered over a sphere outline, with the map data loaded from a TopoJSON world atlas. The code uses `d3.geoOrthographic` for the projection and `d3.geoPath` for drawing, while `d3.drag` and `d3.zoom` handle the user interactions, updating the rotation and scale state accordingly.
AI-generated descriptionA globe with panning and zooming.
MIT Licensed