block by patricksurry 6621971

Rolling pan and zoom with Mercator projection

Full Screen

Example illustrating zoom and pan with a “rolling” Mercator projection. Drag left-right to rotate projection cylinder, and up-down to translate, clamped by max absolute latitude. Ensures projection always fits properly in viewbox.

index.html