Introduction
Developer Guide
Index
Construct GridSpec that matches slippy tiles.
GridSpec
Tile with index (0, 0) is at the top left corner of the map, and tile with index (2^zoom - 1, 2^zoom - 1) is at the bottom right.
(0, 0)
(2^zoom - 1, 2^zoom - 1)
zoom (int) – Zoom level, 0 is one single tile, 1 is 2x2, 3 is 8x8…
int
0
1
2x2
3
8x8
npix (int) – Usually tiles are 256x256 pixels wide. But you can override that.
256x256
Grid spec that encodes slippy tiles scheme in EPSG:3857.
EPSG:3857