algeria-map-ts
Version:
A react component that displays an interactive map of Algeria including all 58 wilayas with custom colors for each wilayas.
19 lines (18 loc) • 510 B
TypeScript
export interface IMapProps {
height?: string;
width?: string;
color?: string;
stroke?: string;
hoverStroke?: string;
HoverColor?: string;
data: {
[key: string]: {
value: number | string;
color?: string;
};
};
onWilayaClick?: (wilaya: string, value: number | string) => void;
getHoverContent?: (record: any) => string;
hoverContentStyle?: React.CSSProperties;
getHoverContentStyle?: (record: any) => React.CSSProperties;
}