UNPKG

@mint-ui/map

Version:

- React map library - Control various map with one interface - Google, Naver, Kakao map supported now - Typescript supported - Canvas marker supported

45 lines (44 loc) 1.22 kB
import { MapType } from "./CommonTypes"; import { Bounds, Offset, Position } from "./MapTypes"; export declare class MapEvent { BOUNDS_CHANGED: string; CENTER_CHANGED: string; IDLE: string; ZOOM_CHANGED: string; ZOOMSTART: string; get(eventName: MapEventName): string | undefined; } export declare class MapUIEvent { CLICK: string; DBLCLICK: string; MOUSEDOWN: string; MOUSEUP: string; MOUSEOUT: string; MOUSEMOVE: string; MOUSEOVER: string; DRAG: string; DRAGSTART: string; DRAGEND: string; RIGHTCLICK: string; CONTEXTMENU: string; get(eventName: MapEventName): string | undefined; } export declare type MapEventName = keyof MapEvent | keyof MapUIEvent; export declare type MapEventParam = { center: Position; bounds: Bounds; zoomLevel: number; }; export declare type MapUIEventParam = { offset: Offset; position: Position; pointerEvent?: PointerEvent; }; export declare type EventParamType = MapEventParam & MapUIEventParam; export interface EventParam<T> { mapType: MapType; name: MapEventName; vendorEventName: string; param: T; } export declare type EventCallback<T> = (e: EventParam<T>) => void;