Ocean
✓ Published0🌍 Public
Mmbostock
Last edited Dec 20, 2022
Created on Sep 26, 2013
An orthographic globe renders the world’s oceans as a translucent blue polygon, rotating slowly to reveal the Earth’s curvature. The example highlights counterclockwise polygon winding and improved antimeridian stitching in TopoJSON, with ocean data from Natural Earth. D3’s `d3.geo.orthographic` projection, `d3.geo.path`, and a canvas context draw the sphere, graticule, and ocean, while `d3.timer` drives the animation.
AI-generated descriptionOne of the few cases where you want a counterclockwise polygon because the ocean covers greater than one hemisphere. The example demonstrates improved antimeridian stitching in TopoJSON 1.4.1.
gpl-3.0 Licensed