This example demonstrates how to compute a suitable translate and scale to zoom to the bounding box of a particular feature. Click on any state to zoom in; click on the focused state or the background to zoom out.
This variant uses transform transitions to change the viewport. A slightly better approach, and one that can also allow free panning and zooming with the mouse if desired, is to use zoom transitions.
(first i tried IRC, nobody listening. then i tried stackOverflow complained about me not meeting their quality standards?! sigh, a comment via github)
I've replicated this example, except mine does NOT zoom when i click a region? I've made a pastie of my version: http://pastie.org/8436223
the regions render fine, i can click on each and get its name echoed to console, and the second echo of the 'b' var also looks correct?
anyone see a bug? i can also send along the opd_beats.json file if it'd help?