india-map-svg
Version:
Interactive **SVG maps of India and its states** with zoom, pan, hover tooltips, and click events. Built with **React + TypeScript**.
32 lines (31 loc) • 882 B
TypeScript
import { default as React } from 'react';
interface ViewportConfig {
x?: number;
y?: number;
width?: number;
height?: number;
scale?: number;
}
interface MapOfSvgProps {
name: string;
height?: string | number;
width?: string | number;
onPathClick?: (pathName: string, pathId: string) => void;
onPathHover?: (pathName: string | null, pathId: string) => void;
viewportConfig?: ViewportConfig;
autoFit?: boolean;
preserveAspectRatio?: string;
fillById?: Record<string, string>;
strokeWidth?: number;
strokeColor?: string;
pathFillColor?: string;
coverFillColor?: string;
backgroundColor?: string;
hoverPathColor?: string;
enableZoomPan?: boolean;
minScale?: number;
maxScale?: number;
}
export declare const MapOfSvg: React.FC<MapOfSvgProps>;
export {};
//# sourceMappingURL=MapOfSvg.d.ts.map