View as Markdown

API reference: @salmonui/charts/geo-map

GeoMapLegendOptionsinterface

import type { GeoMapLegendOptions } from '@salmonui/charts/geo-map';
interface GeoMapLegendOptions {
    readonly source?: 'shapes' | 'bubbles' | 'markers' | undefined;
    readonly mode?: 'list' | 'interactive' | undefined;
    readonly title?: string | undefined;
    readonly position?: 'top' | 'bottom' | 'start' | 'end' | 'float' | undefined;
    readonly x?: number | undefined;
    readonly y?: number | undefined;
}
GeoMapLegendOptions members (6)
NameSignatureDescription
sourceoptionalreadonly source?: 'shapes' | 'bubbles' | 'markers' | undefined;
modeoptionalreadonly mode?: 'list' | 'interactive' | undefined;

'interactive' (default) toggles items; 'list' only lists them.

titleoptionalreadonly title?: string | undefined;
positionoptionalreadonly position?: 'top' | 'bottom' | 'start' | 'end' | 'float' | undefined;

Default 'bottom'; 'float' draws the legend over the map at x, y (px, default 8).

xoptionalreadonly x?: number | undefined;
yoptionalreadonly y?: number | undefined;