Optional cache: CacheOptional decompress: DecompressFuncConstruct a TileJSON object.
baseTilesUrl is the desired tiles URL, excluding the suffix /{z}/{x}/{y}.{ext}.
For example, if the desired URL is http://example.com/tileset/{z}/{x}/{y}.mvt,
the baseTilesUrl should be https://example.com/tileset.
Primary method to get a single tile's bytes from an archive.
Returns undefined if the tile does not exist in the archive.
Optional signal: AbortSignalGenerated using TypeDoc
Main class encapsulating PMTiles decoding logic.
if
sourceis a string, creates a FetchSource using that string as the URL to a remote PMTiles. if nocacheis passed, use a SharedPromiseCache. if nodecompressis passed, default to the browser DecompressionStream API with a fallback tofflate.