@maticoapp/deck.gl-pmtiles
Version:
This repo provides a typed Deck.gl layer and loader for PMTiles data. PMTiles data provides a serverless and compact way to store tile geospatial data. Combined with Deck.gl's rendering, this provides a flexible and powerful way to cheaply manage geospati
26 lines (22 loc) • 892 B
text/typescript
import { LoaderWithParser } from "@loaders.gl/loader-utils";
import type { BinaryFeatures } from "@loaders.gl/schema";
export type DataShapeNames = keyof DataShapes;
export type DataShapes = {
"binary": BinaryFeatures,
"binary-geometry": BinaryFeatures
"columnar-table": {'shape': "columnar-table", 'data': BinaryFeatures},
"geojson": GeoJSON.FeatureCollection,
"geojson-row-table": {'shape': "geojson-row-table", 'data': GeoJSON.FeatureCollection},
}
export type BinaryEntries = [keyof BinaryFeatures, any];
export type JoinLoaderProps = {
loader: LoaderWithParser;
shape: "binary";
leftId: string;
rightId: string;
tableData?: {[key: string]: any}[];
dataDict?: {[key: string]: object};
dataMap?: Map<string, object>;
updateTriggers?: any[];
}
export type JoinLoader = (props: JoinLoaderProps) => LoaderWithParser;