Skip to content

Instantly share code, notes, and snippets.

@maptastik
Last active June 23, 2016 14:18
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save maptastik/7318947eee45a39a634ae746c0fb3ab4 to your computer and use it in GitHub Desktop.
Save maptastik/7318947eee45a39a634ae746c0fb3ab4 to your computer and use it in GitHub Desktop.
ArcGIS Service Tiling Scales

ArcGIS Service Tiling Scales

When creating services in ArcGIS for use in web maps it may be necessary to change the style dependent on the scale level. ArcGIS allows users to toggle layers and layer groups on and off based on scale. It also contains a preset list of scales that correspond to a zoom level in the tile mapping scheme used in web maps. The problem is that the scales listed in the scale menu are rounded to a whole number, but the scales used in the tiling scheme contain decimal values. As such, one cannot simply rely on the numbers in the scale list for setting the scale at which a layer should turn on or off. It is a bit tricky to locate those decimal values, but they do exist. When publishing a service, the more precise scale values are listed under Caching>Advanced Settings. This lists the scales for z0-z19 as well as the In Beyond and Out Beyond values for each zoom level. This gist here is just a copy of those values so you don't have to go through all the dialog windows used for publishing a service.

zoom scale out_beyond in_beyond
19 1128.497176 1129
18 2256.994353 2257 1129.1
17 4513.988705 4514 2257.1
16 9027.977411 9028 4514.1
15 18055.954822 18056 9028.1
14 36111.909643 36112 18056.1
13 72223.819286 72224 36112.1
12 144447.638572 144448 72224.1
11 288895.277144 288896 144448.1
10 577790.554289 577791 288896.1
9 1155581.108577 1155582 577791.1
8 2311162.217155 2311163 1155582.1
7 4622324.434309 4622325 2311163.1
6 9244648.868618 9244649 4622325.1
5 18489297.737236 18489298 9244649.1
4 36978595.474472 36978596 18489298.1
3 73957190.948944 73957191 36978596.1
2 147914381.897889 147914382 73957191.1
1 295828763.795777 295828764 147914382.1
0 591657527.591555 295828764.1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment