kepler.gl
Version:
kepler.gl is a webgl based application to visualize large scale location data in the browser
53 lines (52 loc) • 1.95 kB
TypeScript
import KeplerTable, { Datasets } from '@kepler.gl/table';
import { z } from 'zod';
export declare const addLayer: import("@openassistant/utils").ExtendedTool<z.ZodObject<{
datasetName: z.ZodString;
fieldName: z.ZodString;
layerType: z.ZodEnum<[
'point',
'arc',
'line',
'grid',
'hexagon',
'geojson',
'cluster',
'heatmap',
'h3',
'trip',
's2'
]>;
colorScale: z.ZodOptional<z.ZodEnum<['quantile', 'quantize', 'ordinal', 'custom']>>;
customColorScale: z.ZodOptional<z.ZodArray<z.ZodNumber>>;
}, z.UnknownKeysParam, z.ZodTypeAny, {
datasetName: string;
fieldName: string;
layerType: "grid" | "h3" | "line" | "geojson" | "point" | "arc" | "hexagon" | "cluster" | "heatmap" | "trip" | "s2";
colorScale?: "quantile" | "quantize" | "ordinal" | "custom" | undefined;
customColorScale?: number[] | undefined;
}, {
datasetName: string;
fieldName: string;
layerType: "grid" | "h3" | "line" | "geojson" | "point" | "arc" | "hexagon" | "cluster" | "heatmap" | "trip" | "s2";
colorScale?: "quantile" | "quantize" | "ordinal" | "custom" | undefined;
customColorScale?: number[] | undefined;
}>, {
success: boolean;
layer?: string | undefined;
details?: string | undefined;
error?: string | undefined;
instruction?: string | undefined;
}, {
layer: object;
datasetId: string;
} | undefined, AddLayerFunctionContext>;
export declare type AddLayerTool = typeof addLayer;
declare type AddLayerFunctionContext = {
getDatasets: () => Datasets;
};
export declare function guessDefaultLayer(dataset: KeplerTable, layerType: string): import("@kepler.gl/layers/dist/base-layer").default | import("@kepler.gl/layers/dist/hexagon-layer/hexagon-layer").default | null;
export declare function AddLayerToolComponent({ layer, datasetId }: {
layer: any;
datasetId: any;
}): null;
export {};