TileIds

PMTiles TileID conversion utilities.

Functions

Link copied to clipboard
fun fromZxy(z: Int, x: Int, y: Int): Long

Converts a Web tile coordinate to a PMTiles TileID.

Link copied to clipboard
fun toZxy(tileId: Long): TileCoord

Converts a PMTiles TileID to a Web tile coordinate.

Link copied to clipboard
fun zoomStart(z: Int): Long

Returns the first PMTiles TileID for z.