kepler.gl
Version:
kepler.gl is a webgl based application to visualize large scale location data in the browser
35 lines (34 loc) • 1.03 kB
TypeScript
import { Layer, LayerBaseConfig } from '@kepler.gl/layers';
import { LayerVisConfig } from '@kepler.gl/types';
import { z } from 'zod';
/**
* Update the color of a layer
* NOTE: this tool should be updated to updateLayerStyle including color, size, opacity, etc.
*/
export declare const updateLayerColor: import("@openassistant/utils").ExtendedTool<z.ZodObject<{
layerId: z.ZodString;
numberOfColors: z.ZodNumber;
customColors: z.ZodArray<z.ZodString, "many">;
}, "strip", z.ZodTypeAny, {
layerId: string;
numberOfColors: number;
customColors: string[];
}, {
layerId: string;
numberOfColors: number;
customColors: string[];
}>, {
success: boolean;
details?: string | undefined;
error?: string | undefined;
instruction?: string | undefined;
}, {
layerId: string;
layer: Layer;
newConfig: Partial<LayerBaseConfig>;
channel: string;
newVisConfig: Partial<LayerVisConfig>;
}, {
getLayers: () => never;
layerVisualChannelConfigChange: () => never;
}>;