Projection Sandbox

Explore, transform, and visualize geographic projections

lambda = longitude in radians, phi = latitude in radians.
Full JavaScript is allowed. Do not paste arbitrary code in here.
Example: if (phi > 0) return phi; else return phi * 0.8;
You don't need to prefix everything with Math.
Full JavaScript is allowed. Do not paste arbitrary code in here.
PADDING - The app uses an approximation to determine the bounds of the projection image. Sometimes that approximation can clip off sections of the map, this is intended to correct for that.

Code primarily generated using ChatGPT because I just could not be bothered