react-typescript-datamaps
Version:
react wrapper component for the 'datamaps' library (Interactive maps for data visualizations). Out of the box it includes advance arc-attack-plugin and demo mode.
32 lines (31 loc) • 770 B
TypeScript
export interface ArcItem {
origin: Location;
destination: Location;
options: Options;
}
export interface Location {
latitude: string | number;
longitude: string | number;
name: string;
}
interface Options {
arcStrokeColor?: string;
arcStrokeWidth?: number;
arcSharpness?: number;
arcLabels?: LabelOptions;
destinationCircle?: CircleOptions;
}
interface LabelOptions {
fontSize?: number;
fontFamily?: string;
fill?: string;
strokeColor?: string;
fillColor?: string;
}
interface CircleOptions {
r?: number;
fillColor?: string;
strokeColor?: string;
}
export declare function handleArcsAdvance(this: any, layer: any, data: ArcItem[], options: any): void;
export {};