@mint-ui/map
Version:
- React map library - Control various map with one interface - Google, Naver, Kakao map supported now - Typescript supported - Canvas marker supported
19 lines (18 loc) • 647 B
TypeScript
import { Bounds, Position } from "../../types/MapTypes";
export interface ClusterInfo {
bounds: Bounds;
checked: boolean;
center: boolean;
centerPosition: Position;
incList: any;
itemList: Position[];
size: number;
}
export interface ClusterStatus {
total: number;
average: number;
min: number;
max: number;
}
export declare type ClusterSizeCalculator = (info: ClusterInfo, status: ClusterStatus) => number;
export declare const getClusterInfo: (basePixelSize: number, mapBounds: Bounds, mapWidth: number, mapHeight: number, itemList: Position[], sizeFunction?: ClusterSizeCalculator) => ClusterInfo[];