TileJSONLoader
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.
Loader | Characteristic |
---|---|
File Extension | .json |
File Type | Text |
File Format | TileJSON |
Data Format | TileJSON |
Decoder Type | Synchronous |
Worker Thread Support | No |
Streaming Support | No |
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​
Option | Type | Default | Description |
---|
|