This D3 example demonstrates using the zoom event and limits the bounds of the zooming to a specified domain. It is largely based on /jasondavies/3689931, but with bounds. Most of this bounding is done in the refresh function. You need to zoom in before you can pan or zoom out.
forked from tommct's block: D3 Bounded Zoom
Modified http://d3js.org/d3.v4.min.js to a secure url
https://d3js.org/d3.v4.min.js