Skip to main content

TileJSONLoader

From-v4.0

The TileJSONLoader parses metadata from a TileJSON / tilestats file. It merges layer and field information from both tilestats and TileJSON and returns a strongly typed data structure.

LoaderCharacteristic
File Extension.json
File TypeText
File FormatTileJSON
Data FormatTileJSON
Decoder TypeSynchronous
Worker Thread SupportNo
Streaming SupportNo

Usage​

import {TileJSONLoader} from '@loaders.gl/pmtiles';
import {load} from '@loaders.gl/core';

const tileJSON = await load(url, TileJSONLoader, options);

Data Format​

See [TileJSON format](/docs/modules/mvt/formats/tilejson.md].

Options​

OptionTypeDefaultDescription