Skip to main content
Public

Share visualization

Loading preview…

Fork of Mercator Panning & Zooming

vizhub.com

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

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 & exportHTML, source ZIP

Viewing a saved revision (read-only)

HOtMIUzsdErGtiv96Vo-i

Fork of Mercator Panning & Zooming

0 stars0Public
Mmroufail72
Last edited Nov 13, 2026
Created on Nov 13, 2026

This example demonstrates a Mercator projection map of the world that supports interactive panning and zooming. The visualization renders country boundaries as vector paths and includes a graticule grid, with an outline representing the sphere. The interaction is managed through the `d3.zoom` API, which adjusts the projection's scale and translation. Map data is fetched from the *visionscarto* world atlas, and the rendering pipeline uses `d3.geoPath` and `d3.geoGraticule`, with the `topojson-client` library processing the topology data into geographic features.

MIT Licensed