Skip to main content
100%

Zoom to Bounding Box II d3v4

✓ Published0🌍 Public
PPhilippe Rivière
Last edited May 10, 2017
Created on Mar 1, 2017

This interactive map of the United States supports both click-to-zoom and free pan/zoom via mouse or touch. Clicking a state smoothly zooms to its bounding box, while a mesh overlay shows state borders. It uses `d3.geoAlbersUsa` for the projection, `d3.geoPath` for rendering, and the `d3.zoom` transition to interpolate between views. The map data comes from a remote TopoJSON file, and the SVG rendering animates transformations and stroke widths.

AI-generated description

A variant of the Zoom to Bounding Box example that uses zoom transitions to smoothly interpolate between different views. This example also allows you to freely pan and zoom with the mouse (or touch).

forked from <a href='http://bl.ocks.org/mbostock/'>mbostock</a>'s block: <a href='http://bl.ocks.org/mbostock/9656675'>Zoom to Bounding Box II</a>

gpl-3.0 Licensed

Similar vizzes