I work with D3, and so far I have managed to set up an example of a chloroplan to draw a specific state. This included simply deleting all the other polygon data so that I stayed with the state I needed.
I started with this:

and then changed the situation:

However, what I would like to do is automatically pan / zoom the map when creating, so that the state is in the front and center on the display, for example:

Am I doing this through the D3 library? or some kind of independent code (I currently have jquery-svgpan working with d3 to allow manual pan / zoom) to make this happen?
source
share