Skip to main content
Public

Share visualization

Loading preview…

Fork of Globe with Panning & Zooming

vizhub.com

Shared links may look like this on X, LinkedIn, Slack, and Discord.

Before sharing, review the publishing checklist.

Choose how to deliver this visualization

LinkedIn caption

LinkedIn may not keep text supplied by the share sheet. Copy the caption and paste it into the post if needed. You can tag the VizHub company page when posting.

More options

Embed on a websiteCopy iframe embed code
Download & exportPNG, HTML, source ZIP

Fork of Globe with Panning & Zooming

0
Aacharlton21@proton.me
Last edited Aug 3, 2024
Created on Aug 3, 2024

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 description

A globe with panning and zooming.

Comments

Sign in to join the discussion.

MIT Licensed