API and agentsAPI reference
Viewport
object
The map camera: pitch 0 to 60 degrees, latitude -85.051129 to 85.051129 degrees, zoom -2 to 24, all finite and inclusive. Out-of-range submissions are refused. Accepted cameras render as stored, except coverage moves a center nearer a pole than half the canvas height toward the equator and raises zoom below log2(canvas height / 512), accounting for view padding. Older stored cameras read clamped to these bounds without a write. The viewport is one whole camera: omitted pitch and bearing store zero (flat and north-up).
lngnumberlatnumberminimum-85.051129maximum85.051129zoomnumberminimum-2maximum24pitchnumberminimum0maximum60bearingnumberminimum-360maximum360
Dezfil · Apache-2.0docs from
7439201b