Inspect a PMTiles archive and return its normalized metadata (bounds, min/max zoom, suggested center, and vector layer names). The pmtiles reader is imported lazily on first use.
pmtiles
Pass DescribePmtilesArchiveDeps.source to read a local archive (the unit-test path) or DescribePmtilesArchiveDeps.PMTiles to inject a fake reader; both default to fetching url through the real reader.
url
const info = await describePmtilesArchive("https://example.com/basemap.pmtiles");console.log(info.bounds, info.minZoom, info.maxZoom);for (const layer of info.vectorLayers) console.log(layer.id); Copy
const info = await describePmtilesArchive("https://example.com/basemap.pmtiles");console.log(info.bounds, info.minZoom, info.maxZoom);for (const layer of info.vectorLayers) console.log(layer.id);
Inspect a PMTiles archive and return its normalized metadata (bounds, min/max zoom, suggested center, and vector layer names). The
pmtilesreader is imported lazily on first use.Pass DescribePmtilesArchiveDeps.source to read a local archive (the unit-test path) or DescribePmtilesArchiveDeps.PMTiles to inject a fake reader; both default to fetching
urlthrough the real reader.