react-bkoi-gl
Version:
React components for Barikoi GL JS
10 lines (9 loc) • 689 B
TypeScript
import type { IControl, ControlPosition } from "../types/lib";
import type { MapContextValue } from "./map";
type ControlOptions = {
position?: ControlPosition;
};
export declare function useControl<T extends IControl>(onCreate: (context: MapContextValue) => T, opts?: ControlOptions): T;
export declare function useControl<T extends IControl>(onCreate: (context: MapContextValue) => T, onRemove: (context: MapContextValue) => void, opts?: ControlOptions): T;
export declare function useControl<T extends IControl>(onCreate: (context: MapContextValue) => T, onAdd: (context: MapContextValue) => void, onRemove: (context: MapContextValue) => void, opts?: ControlOptions): T;
export {};