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.
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.
| System | Value for the Wildspitz view | What the value counts |
|---|---|---|
| Shared view | 13.468z | The format's reference zoom. It is the 256 pixel ladder with fractions, counted in CSS pixels. |
| Shared ground resolution | 9.3971g | Ground distance covered by one pixel at the map center. |
| Zoom, 256 px world | 13.47 | Doublings from a world that is 256 pixels wide. |
| Zoom, 512 px world | 12.47 | Doublings from a world that is 512 pixels wide. |
| swisstopo map zoom | 6, the nearest step | A step in swisstopo's own table. Map zoom 6 is 10 m per pixel and map zoom 7 is 5 m. |
| SchweizMobil resolution | 9.40 | Metres per pixel on the Swiss grid. |
| Map scale | About 1:35,500 | Ground distance per screen distance on a 96 dpi screen. The number changes with the assumed pixel size. |
| Apple Maps distance | 10,148.8 m | Camera distance from the map center. The scale also depends on the lens. |
What a zoom number depends on
| Factor | Variants | Effect |
|---|---|---|
| Width of the world at zoom 0 | 256 pixels or 512 pixels | The same view is one level apart. Zoom 13.47 on the first ladder is 12.47 on the second. |
| Latitude | Web Mercator stretches the map away from the equator | With 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 size | Whole levels or fractions | A viewer limited to whole levels opens 13.47 as 13 or 14. That shows about 38% more or 31% less ground per pixel. |
| The ladder | Doubling steps or a viewer's own table | swisstopo'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 pixel | CSS pixels or device pixels | A 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
| Shared zoom | Equator | Rigi (47.047° N) | 60° N |
|---|---|---|---|
0z | 155,500 | 106,500 | 78,340 |
1z | 77,750 | 53,260 | 39,170 |
2z | 38,870 | 26,630 | 19,580 |
3z | 19,440 | 13,320 | 9,792 |
4z | 9,718 | 6,658 | 4,896 |
5z | 4,859 | 3,329 | 2,448 |
6z | 2,430 | 1,664 | 1,224 |
7z | 1,215 | 832.2 | 612 |
8z | 607.4 | 416.1 | 306 |
9z | 303.7 | 208.1 | 153 |
10z | 151.9 | 104 | 76.5 |
11z | 75.93 | 52.01 | 38.25 |
12z | 37.96 | 26.01 | 19.13 |
13z | 18.98 | 13 | 9.563 |
14z | 9.491 | 6.502 | 4.781 |
15z | 4.745 | 3.251 | 2.391 |
16z | 2.373 | 1.625 | 1.195 |
17z | 1.186 | 0.8127 | 0.5977 |
18z | 0.5932 | 0.4064 | 0.2988 |
19z | 0.2966 | 0.2032 | 0.1494 |
20z | 0.1483 | 0.1016 | 0.07471 |
21z | 0.07415 | 0.0508 | 0.03735 |
22z | 0.03707 | 0.0254 | 0.01868 |
23z | 0.01854 | 0.0127 | 0.009338 |
24z | 0.009268 | 0.006349 | 0.004669 |
25z | 0.004634 | 0.003175 | 0.002335 |
26z | 0.002317 | 0.001587 | 0.001167 |
27z | 0.001159 | 0.0007937 | 0.0005837 |
28z | 0.0005793 | 0.0003968 | 0.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
| Source | What it defines | What it says | Link |
|---|---|---|---|
| OGC Two Dimensional Tile Matrix Set, WebMercatorQuad | A ladder of whole levels for 256 pixel tiles in Web Mercator | Level 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 wiki | The 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 |
| swisstopo | Its own table on the Swiss grid | Map 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
| SDK | World at zoom 0 | Steps | How it is defined | Source |
|---|---|---|---|---|
| Leaflet | 256 px | Whole by default | At 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 |
| OpenLayers | 256 px | Fractional by default | The 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 API | 256 px | Fractional 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 JavaScript | basemap table | Whole by default | Zoom 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 JS | 512 px | Fractional | Tile sources default to a tile size of 512 pixels. The URL hash writes zoom/lat/lon. | Sources · Map options |
| Mapbox GL JS | 512 px | Fractional | “Libraries based on Mapbox GL display 512x512 pixel tiles by default, while many other mapping libraries use 256x256 pixel tiles.” | Zoom level |
| deck.gl | 512 px | Fractional | Its 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 JS | no 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
What shared links write
These are the scale values requested or observed in the Wildspitz viewer comparison. Viewer comparisons · Outdoor app inventory
| Scale convention | Value | Apps |
|---|---|---|
| Whole zoom in this comparison, 256 px world | 13 | Google Maps, Mapy.com, CalTopo, OsmAnd, OpenSnowMap, Skiguide, Locus Map, Outdooractive, Alpenvereinaktiv, OpenStreetMap, HERE WeGo |
| Fractional zoom, 256 px world | 13.47 | thermal.kk7 |
| Fractional zoom, 512 px world | About 12.47 | OpenSkiMap, PowderGuide, ViaTopo, Komoot |
| Other tested zoom values, 512 px world | 13.0 and 12.15 | Gaia GPS used 13.0. Strava capped the view at 12.15. |
| The viewer's own zoom table | 6 | map.geo.admin.ch |
| Resolution in metres per pixel | 9.40 | SchweizMobil |
| An extent to fit | Four bounds | ArcGIS Map Viewer, NASA Worldview, Camptocamp |
| A camera distance | 10,148.8 m | Apple Maps |
The 256 px ladder accounts for 12 of the 24 links, including 11 with whole zoom in this comparison. The 512 px ladder accounts for six. On that ladder, the number for the same scale is one lower. In the 22 November recheck, Outdooractive and Alpenvereinaktiv opened at zoom 13. Their 1 km scale bars were 77 CSS px wide, matching OpenStreetMap at zoom 13. Scale-bar measurements
OpenStreetMap was sent 13.47 and its capture matches zoom 13. Gaia GPS used 13.0 and shows a 3,000 ft bar about twice as long as OpenStreetMap’s. HERE WeGo’s 1 km bar is about the same width as OpenStreetMap’s. OpenStreetMap capture · Gaia GPS capture · HERE WeGo capture
Other ways to give scale
| Field | Example | Strength | Catch |
|---|---|---|---|
| Zoom on a stated ladder | 13.47 | People 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 pixel | 9.40 | A 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 scale | 1:35,500 | Familiar 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 extent | West, south, east, north | The receiver shows the whole area on any screen. | The receiver chooses the scale. A tall and a wide screen show different surroundings. |
| A camera distance | 10148.8 | Natural 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.
