@mint-ui/map
Version:
- React map library - Control various map with one interface - Google, Naver, Kakao map supported now - Typescript supported - Canvas marker supported
26 lines (25 loc) • 833 B
TypeScript
import { MapVendorType } from "./CommonTypes";
import { Bounds, Position } from "./MapTypes";
import { MintMapController } from "../core/MintMapController";
export interface MintMapEvents {
/**
* 지도의 보여지는 영역이 변경되었을때 호출되는 콜백
*/
onBoundsChanged?: (bounds: Bounds) => void;
/**
* 지도의 줌이 변경되었을때 호출되는 콜백
*/
onZoomChanged?: (level: number) => void;
/**
* 지도 준비완료시 호출되는 콜백
*/
onLoad?: (map: MapVendorType, controller: MintMapController) => void;
/**
* 지도 클릭시 호출되는 콜백
*/
onClick?: (positon: Position) => void;
/**
* 지도 위에서 마우스 이동시 호출되는 콜백
*/
onMouseMove?: (positon: Position) => void;
}