UNPKG

s2maps-gpu

Version:

S2 Maps GPU - An open source, high-performance, and GPU-accelerated map engine for rendering large-scale, interactive maps.

22 lines (21 loc) 760 B
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<void>; /** * 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<void>; }