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
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
.