Map Pan and Zoom v5
✓ Published0🌍 Public
Dd3noob
Last edited Dec 2, 2019
Created on Dec 2, 2019
This map of the world centers on the Pacific Ocean and lets users pan and zoom. It uses a Mercator projection via `d3.geoMercator` and renders country boundaries as SVG paths from TopoJSON data. The `d3.zoom` behavior applies a transform to the path group, enabling interactive navigation with a scale extent of 1 to 8.
AI-generated descriptionThis is a simple map example with pan and zoom centered on the Pacific.
This graph is part of the code samples for the update to the book D3 Tips and Tricks to version 5 of d3.js.
mit Licensed