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
Tthepranavmyana@gmail.com
Last edited Dec 4, 2025
Created on Dec 4, 2025

This example shows an orthographic globe of the world’s countries, rendered with D3’s `geoOrthographic` and `geoPath` projections, overlaid with a graticule and a sphere outline. Users can pan the globe by dragging, which adjusts the rotation via a custom drag behavior, and zoom by scrolling, which scales the projection using D3’s `zoom`. The map loads geographic data from `visionscarto-world-atlas` TopoJSON, which is converted to GeoJSON with `topojson-client`, and the initial projection fits to the container size using `fitExtent`.

AI-generated description

Comments

Sign in to join the discussion.

MIT Licensed