Zoom to Bounding Box II
This example shows an interactive map of United States states that users can click to zoom into a specific state’s bounding box, with the view smoothly transitioning via zoom transitions. The map renders using SVG paths generated by `d3.geo.path` with an Albers USA projection, and the state boundaries come from TopoJSON data loaded from a gist. Users can also freely pan and zoom with the mouse or touch using `d3.behavior.zoom`, while clicking a state or the background resets the view.
AI-generated descriptionA 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>