@carto/airship-bridge
Version:
Airship bridge to other libs (CARTO VL, CARTO.js)
17 lines (16 loc) • 501 B
TypeScript
interface LegendOptions {
format?: (value: number | number[], index?: number, arr?: any[]) => string;
onLoad?: () => void;
dynamic?: boolean;
config?: {
othersLabel?: string;
samples?: number;
variable?: string;
order?: string;
};
}
export default class Legends {
static layersLegend(widget: any, layers: any, options?: LegendOptions): void;
static rampLegend(widget: any, layer: any, prop: any, options?: LegendOptions): void;
}
export {};