View as Markdown

API reference: @salmonui/charts/geo-map

GeoMapRouteinterface

import type { GeoMapRoute } from '@salmonui/charts/geo-map';
interface GeoMapRoute {
    readonly id?: string | undefined;
    readonly points: readonly LatLon[];
    readonly curvature?: number | undefined;
    readonly arrows?: 'none' | 'start' | 'end' | 'both' | undefined;
    readonly lineStyle?: 'solid' | 'dashed' | 'dotted' | undefined;
    readonly color?: string | undefined;
    readonly width?: number | undefined;
    readonly label?: string | undefined;
}
GeoMapRoute members (8)
NameSignatureDescription
idoptionalreadonly id?: string | undefined;
pointsreadonly points: readonly LatLon[];

[latitude, longitude] points.

curvatureoptionalreadonly curvature?: number | undefined;

Bend of each segment as a fraction of its length (0 = straight).

arrowsoptionalreadonly arrows?: 'none' | 'start' | 'end' | 'both' | undefined;
lineStyleoptionalreadonly lineStyle?: 'solid' | 'dashed' | 'dotted' | undefined;
coloroptionalreadonly color?: string | undefined;
widthoptionalreadonly width?: number | undefined;
labeloptionalreadonly label?: string | undefined;