A zoom event is emitted by a D3 zoom behavior whenever the user changes a visualization’s zoom or translation state. In a map, a listener receives the event and can read its transform object: k controls scale, while x and y control horizontal and vertical translation. section 13.3
Interactive world map
Attach a zoom behavior to .map-container, log each event while testing mouse-wheel or trackpad interaction, then transform the SVG with e.transform to enable zooming and panning. section 13.3
