Skip to content

What a zoom number means

Last checked ·

A zoom number has no unit. It counts steps on a ladder, and viewers use different ladders. This page compares how standards, SDKs and shared links define zoom and shows the numbers they give one view.

What the comparison shows

Most web maps count zoom on a Web Mercator ladder where each step doubles the detail. They disagree on where the ladder starts. One group draws the world 256 pixels wide at zoom 0. The other draws it 512 pixels wide. The same view is one zoom level apart between the two.

The shared view format uses the 256 pixel ladder for optional z and accepts fractional zoom. How the format uses it

Some viewers accept only whole steps. Some use their own ladder or no zoom at all. On any Mercator ladder, the same zoom shows less ground per pixel away from the equator.

13.47 · 12.47 · 6 three zoom numbers for one Wildspitz view
1 level between a 256 px and a 512 px world
9.40 m per pixel the same view as a ground scale

One view, many numbers

The flat Wildspitz reference view shows 9.40 m of ground per CSS pixel. Each ladder gives that view a different number.

A ruler of ground resolution from 60 to 1.5 metres per pixel. The Wildspitz view sits at 9.40 metres per pixel. On the ladder with a 256 pixel world, which the shared view format uses, it is zoom 13.47. On the ladder with a 512 pixel world it is zoom 12.47. On the swisstopo ladder it lies just past map zoom 6, which is 10 metres per pixel.
Zoom increases to the right. The tick positions of the two Web Mercator ladders hold at the latitude of Wildspitz. The swisstopo steps are metres on the Swiss grid. Excalidraw source
The same view in each system
SystemValue for the Wildspitz viewWhat the value counts
Shared view13.468zThe format's reference zoom. It is the 256 pixel ladder with fractions, counted in CSS pixels.
Shared ground resolution9.3971gGround distance covered by one pixel at the map center.
Zoom, 256 px world13.47Doublings from a world that is 256 pixels wide.
Zoom, 512 px world12.47Doublings from a world that is 512 pixels wide.
swisstopo map zoom6, the nearest stepA step in swisstopo's own table. Map zoom 6 is 10 m per pixel and map zoom 7 is 5 m.
SchweizMobil resolution9.40Metres per pixel on the Swiss grid.
Map scaleAbout 1:35,500Ground distance per screen distance on a 96 dpi screen. The number changes with the assumed pixel size.
Apple Maps distance10,148.8 mCamera distance from the map center. The scale also depends on the lens.

What a zoom number depends on

Five things that change what a zoom number shows
FactorVariantsEffect
Width of the world at zoom 0256 pixels or 512 pixelsThe same view is one level apart. Zoom 13.47 on the first ladder is 12.47 on the second.
LatitudeWeb Mercator stretches the map away from the equatorWith the spherical formula at zoom 13.468, one pixel covers 13.82 m at the equator, 9.41 m at Wildspitz and 6.91 m at 60° N.
Step sizeWhole levels or fractionsA viewer limited to whole levels opens 13.47 as 13 or 14. That shows about 38% more or 31% less ground per pixel.
The ladderDoubling steps or a viewer's own tableswisstopo's map zoom runs from 0 to 13 with uneven steps. Its zoom 6 is close to zoom 13.4 on the 256 pixel ladder.
The pixelCSS pixels or device pixelsA screen with a pixel ratio of 2 draws twice as many device pixels for the same CSS size. A zoom defined in CSS pixels keeps the same framing.
ground metres per pixel ≈ 156,543.03 × cos(latitude) / 2^zoom      256 pixel world, on a sphere
zoom on a 512 pixel world = zoom on a 256 pixel world − 1

The first line is the usual tile formula. The shared view specification uses the WGS 84 ellipsoid and measures along the direction at the top of the screen. OpenStreetMap zoom levels · Reference zoom and ground scale

Reference zoom to ground resolution

Use the table to estimate g from z for a north-up view. All values are WGS84 ellipsoidal ground metres per CSS pixel along screen-up at the center. The columns differ because Web Mercator ground scale depends on latitude. Viewport size leaves the conversion unchanged. Exact conversion for any supported latitude and heading

Ground metres per CSS pixel at reference zooms 0–28
Shared zoomEquatorRigi (47.047° N)60° N
0z155,500106,50078,340
1z77,75053,26039,170
2z38,87026,63019,580
3z19,44013,3209,792
4z9,7186,6584,896
5z4,8593,3292,448
6z2,4301,6641,224
7z1,215832.2612
8z607.4416.1306
9z303.7208.1153
10z151.910476.5
11z75.9352.0138.25
12z37.9626.0119.13
13z18.98139.563
14z9.4916.5024.781
15z4.7453.2512.391
16z2.3731.6251.195
17z1.1860.81270.5977
18z0.59320.40640.2988
19z0.29660.20320.1494
20z0.14830.10160.07471
21z0.074150.05080.03735
22z0.037070.02540.01868
23z0.018540.01270.009338
24z0.0092680.0063490.004669
25z0.0046340.0031750.002335
26z0.0023170.0015870.001167
27z0.0011590.00079370.0005837
28z0.00057930.00039680.0002918

Each increase of one zoom level halves ground resolution. For a fractional zoom, multiply a row's resolution by 2^(rowZoom − requestedZoom) at the same center and heading. To go the other way, add log2(rowResolution / targetResolution) to the row's zoom. At Rigi, the exact conversion of 7g gives reference zoom 13.893499… and the three-decimal form 13.893z. Rigi worked example · Reproduce the table

Who defines zoom

Definitions
SourceWhat it definesWhat it saysLink
OGC Two Dimensional Tile Matrix Set, WebMercatorQuadA ladder of whole levels for 256 pixel tiles in Web MercatorLevel 0 has a cell size of 156,543.0339280410 m and a scale denominator of 559,082,264.0287178. Each level halves both. The scale assumes a “standardized rendering pixel size” of 0.28 mm.OGC 17-083r4
OpenStreetMap wikiThe common tile ladder“How these steps correspond to scale is not standardized and depends on the exact system and the tile format.” It lists 156,543 m per pixel at level 0 for 256 pixel tiles at the equator.Zoom levels
swisstopoIts own table on the Swiss gridMap zoom runs from 0 to 13. Its steps include 650, 500, 250, 100, 50, 20, 10, 5, 2.5, 2 and 1 m per pixel.WMTS resolutions · URL parameters

The OGC ladder defines whole levels. A fractional zoom such as 13.47 extends the same formula between two levels.

What the SDKs take

Zoom in map SDKs
SDKWorld at zoom 0StepsHow it is definedSource
Leaflet256 pxWhole by defaultAt zoom 0 the world is 256 pixels across and 256 pixels high. Fractional zoom “is disabled by default” and zoomSnap defaults to 1.Zoom levels
OpenLayers256 pxFractional by defaultThe largest resolution is set so that the projection's extent “fits in a 256x256 px tile”, which is 156543.03392804097 for Web Mercator. The view also takes a resolution directly.View
Google Maps JavaScript API256 pxFractional on vector maps“The basic Mercator Google Maps tile is 256 x 256 pixels” and zoom 0 is one such tile. Fractional zoom defaults to “true for vector maps and false for raster maps”.Map and tile coordinates · Map options
ArcGIS Maps SDK for JavaScriptbasemap tableWhole by defaultZoom is “the level of detail (LOD) at the center of the view” and “a shorthand for predetermined scale values”. snapToZoom is true by default. The view also takes a map scale such as 1:24,000.MapView · LOD
MapLibre GL JS512 pxFractionalTile sources default to a tile size of 512 pixels. The URL hash writes zoom/lat/lon.Sources · Map options
Mapbox GL JS512 pxFractional“Libraries based on Mapbox GL display 512x512 pixel tiles by default, while many other mapping libraries use 256x256 pixel tiles.”Zoom level
deck.gl512 pxFractionalIts Web Mercator view is “tuned to work in synchronization with mapbox-gl”. A world of 512 units spans the earth at zoom 0.WebMercatorViewport · Coordinate systems
CesiumJS, Apple MapKit JSno zoom—CesiumJS places a camera by position and height. MapKit JS frames the map with a region or a camera distance.Framework survey

In a fit test, MapLibre GL JS and ArcGIS MapView framed the same Rigi box at 1280 × 800 and reported zooms of 13.43 and 14.52. The gap was 1.09, close to the one level between the two ladders and not exactly one. An adapter should go through ground scale and check the result. Measured extent fit

Other ways to give scale

Alternatives to a zoom number
FieldExampleStrengthCatch
Zoom on a stated ladder13.47People know zoom from every web map. One stated ladder makes it convertible.The number alone does not name its ladder. The ground scale changes with latitude.
Ground metres per pixel9.40A physical scale that works at any latitude and in any projection.Few people know the number. It still needs a stated pixel and screen direction.
Map scale1:35,500Familiar from paper maps.It depends on an assumed pixel size. 96 dpi and the OGC 0.28 mm pixel give different numbers for one view.
An extentWest, south, east, northThe receiver shows the whole area on any screen.The receiver chooses the scale. A tall and a wide screen show different surroundings.
A camera distance10148.8Natural for a 3D viewer.The scale also depends on the lens and the screen size.

What this means for shared view links

A shared flat map can write its scale as z, a fractional zoom on the 256 pixel Web Mercator ladder, in CSS pixels. This is the ladder of Google Maps, OpenStreetMap, Leaflet and OpenLayers, and the one the OGC standard tabulates. New shares use g for ground resolution. Leave both fields out to share a place and let the viewer pick the scale. Flat map fields · Scale decision

A viewer on the 512 pixel ladder, such as MapLibre, Mapbox or deck.gl, subtracts one. A viewer with whole levels or its own table opens the nearest step and reports the change. A viewer in another projection applies the ground scale at the center.

The zoom fixes the scale at the saved center. Moving the latitude by hand changes the ground scale even when z stays the same.