algeria-map-ts
Version:
A react component that displays an interactive map of Algeria including all 58 wilayas with custom colors for each wilayas.
25 lines (21 loc) • 593 B
TypeScript
import React$1 from 'react';
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;
}
declare const Map: React$1.FC<IMapProps>;
export { Map };