World map wrap with constrained zoom using D3. The constraints prevent the map from moving off screen.
Drag left or right to see the wrap effect. Drag up or down to see the constraint up to the ±85th latitudes. Zoom in and out to see the map constrained to the viewport bounds.