Skip to main content

PMTilesSource

From-v4.0

The PMTilesSource reads individual tiles from a PMTiles archive file.

LoaderCharacteristic
File Extension.pmtiles
File TypeBinary Archive
File FormatPMTiles
Data FormatMetadata

Usage​

import {createDataSource} from '@loaders.gl/pmtiles';
import {PMTilesSource} from '@loaders.gl/pmtiles';

const source = createDataSource(url, [PMTilesSource]);
const tile = await source.getTile(...);

Options​

OptionTypeDefaultDescription