import { S2PMTilesReader } from 'gis-tools/index.js'; import Source from './source.js'; import type { TileRequest } from '../worker.spec.js'; /** * # S2 PMTiles Source * * Wrapper for the `S2PMTilesReader`. Fetch tiles as needed. */ export default class S2PMTilesSource extends Source { version: number; reader: S2PMTilesReader; /** @param mapID - the id of the map to build tiles for */ build(mapID: string): Promise; /** * Here, we use the memory mapped file directory tree system to find our data * @param mapID - the id of the map * @param tile - the tile request * @param sourceName - the name of the source */ _tileRequest(mapID: string, tile: TileRequest, sourceName: string): Promise; }