Skip to main content

MVTSource

From-v4.0

The MVTSource dynamically loads tiles, typically from big pre-tiled hierarchies on cloud storage.

SourceCharacteristic
File Extension.mvt .tilejson
File TypeBinary Archive
File FormatMapbox Vector Tiles
Data FormatGeoJSON

Usage​

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

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

Options​

OptionTypeDefaultDescription