Zoom to County
✓ Published0🌍 Public
SSaminu
Last edited Dec 19, 2016
Created on Dec 19, 2016
Clicking a UK country on the map smoothly zooms to its bounding box, highlighting it in orange while dimming the background. The visualization uses D3 v3 with a geographic Albers USA projection and TopoJSON for county boundaries. A d3.behavior.zoom handler enables free pan and zoom, while transitioned zoom events interpolate between scales and translations over 750 milliseconds.
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>
gpl-3.0 Licensed