An example illustrating zoom and pan with a “rolling” Mercator projection in D3. Drag left-right to rotate projection cylinder, and up-down to translate, clamped by max absolute latitude. Ensures projection always fits properly in viewbox.
This was originally a gist hosted at bl.ocks.org, which seems dead now. This clone might still work.