Given an input path, read in the header and root directory
the location of the PMTiles data
FetchReader specific; enable range requests or use urlParam "bytes"
the max size of the cache before dumping old data. Defaults to 20.
Get the metadata of the archive
Get the bytes of the tile at the given (zoom, x, y) coordinates
the zoom level of the tile
the x coordinate of the tile
the y coordinate of the tile
Get the bytes of the tile at the given (face, zoom, x, y) coordinates
the Open S2 projection face
the zoom level of the tile
the x coordinate of the tile
the y coordinate of the tile
Check if a tile exists in the archive
the zoom level of the tile
the x coordinate of the tile
the y coordinate of the tile
Check if an S2 tile exists in the archive
the Open S2 projection face
the zoom level of the tile
the x coordinate of the tile
the y coordinate of the tile
(S2) PMTiles Reader
Description
A V3.0 PMTiles reader for reading standard WebMercator Tile data and V1.0 S2 Tile data.
A Modified implementation of the PMTiles library. It is backwards compatible but offers support for the S2 Projection.
You can learn more about the S2PMTiles Specification here.
Usage
Links