View as Markdown

API reference: @salmonui/charts/geo-map

GeoMapAnnotationinterface

import type { GeoMapAnnotation } from '@salmonui/charts/geo-map';
interface GeoMapAnnotation {
    readonly id?: string | undefined;
    readonly x: number | string;
    readonly y: number | string;
    readonly content: ReactNode;
    readonly align?: 'start' | 'center' | 'end' | undefined;
}
GeoMapAnnotation members (5)
NameSignatureDescription
idoptionalreadonly id?: string | undefined;
xreadonly x: number | string;

Position in the drawing: px numbers or percentages ('50%').

yreadonly y: number | string;
contentreadonly content: ReactNode;
alignoptionalreadonly align?: 'start' | 'center' | 'end' | undefined;