TerrainTileFetcher

Fetches individual tiles from a remote PMTiles archive by range request — never the whole archive, just the bytes of the tile asked for. Here it's pointed at Mapterhorn's Terrarium elevation archives.

Properties

Link copied to clipboard
abstract val version: String?

The archive's version as the server reports it (its ETag), or null if it gave none.

Functions

Link copied to clipboard
expect abstract fun close()
Link copied to clipboard
abstract fun fetchTile(zoom: Int, x: Int, y: Int): ByteArray?

Raw tile bytes (WebP, Terrarium-encoded) at zoom/x/y — google/osm XYZ convention — or null if absent.