Mike
https://github.com/mbostock/d3/blob/master/examples/mercator/mercator-zoom-constrained.html
You can set the zoom behavior's translate and scale properties
externally, but as the above example shows you also want to keep the
derived projection in-sync. (Setting the behavior's translate and
scale does not dispatch zoom events.)
Mike
Most of the examples are listed on the wiki:
https://github.com/mbostock/d3/wiki
Though, I forgot to list the one I sent you, so it's not perfect.
Also, the list on the wiki isn't that great for finding things because
it doesn't give you a preview or provide much descriptive information
other than a short title.
There's a list of all my gists here:
http://blockses.appspot.com/mbostock
As I have time, I'm trying to write more longer-form examples with
explanation. Those you can find here (and subscribe via RSS or
Twitter):
Mike