Main class encapsulating PMTiles decoding logic.
if source is a string, creates a FetchSource using that string as the URL to a remote PMTiles. if no cache is passed, use a SharedPromiseCache. if no decompress is passed, default to the browser DecompressionStream API with a fallback to fflate.
source
cache
decompress
fflate
Optional
Return the header of the archive, including information such as tile type, min/max zoom, bounds, and summary statistics.
Return the arbitrary JSON metadata of the archive.
Primary method to get a single tile bytes from an archive.
Returns undefined if the tile does not exist in the archive.
Generated using TypeDoc
Main class encapsulating PMTiles decoding logic.
if
source
is a string, creates a FetchSource using that string as the URL to a remote PMTiles. if nocache
is passed, use a SharedPromiseCache. if nodecompress
is passed, default to the browser DecompressionStream API with a fallback tofflate
.