UNPKG

@web-map-service/map2d-app

Version:

基于openlayer的2D地图应用

21 lines (20 loc) 514 B
import { DrawType } from '@web-map-service/map2d'; import { App, Plugin } from '../types'; declare function makeTool(app: App): { enabled: boolean; enable(): void; use(type: string, drawType?: DrawType): void; close(): void; }; export declare function createPlugin(): Plugin<Record<string, unknown>>; declare module './tool' { interface Tools { draw: ReturnType<typeof makeTool>; } } declare module '../types' { interface AppEmitterEvent { draw: any; } } export {};