@loaders.gl/mvt
Version:
Loader for Mapbox Vector Tiles
25 lines • 1.24 kB
TypeScript
import Protobuf from 'pbf';
import type { MVTTile, MVTLayer } from "./mvt-types.js";
export type MVTLayerData = {
/** Layer being built */
layer: MVTLayer;
currentFeature: number;
/** list of all keys in layer: Temporary, used when building up the layer */
keys: string[];
/** single list of all values in all columns - Temporary values used when building up the layer */
values: (string | number | boolean | null)[];
types: number[];
columnTypes: number[];
columnNullable: boolean[];
/** list of all feature start positions in the PBF - Temporary values used when building up the layer */
featurePositions: number[];
/** list of all geometry start positions in the PBF - Temporary values used when building up the layer */
geometryPositions: number[];
};
/** Parse an MVT tile from an ArrayBuffer */
export declare function parseMVT(arrayBuffer: ArrayBuffer | Uint8Array): MVTTile;
/** Parse an MVT tile from a PBF buffer */
export declare function parseMVTTile(pbf: Protobuf, end?: number): MVTTile;
/** Parse an MVT layer from BPF at current position */
export declare function parseLayer(pbf: Protobuf, end: number): MVTLayer;
//# sourceMappingURL=parse-mvt-from-pbf.d.ts.map