UNPKG

@web-map-service/map2d

Version:

基于openlayer的2D地图服务

17 lines (16 loc) 601 B
import { Interactive } from './types'; import { ElementData } from '../container/elements'; import { InteractiveManager } from './interactiveManager'; export type DrawType = 'line' | 'circle' | 'polygon' | 'rect'; export interface DrawInteractiveOptions { type: DrawType; } export interface Emit { type: DrawType; data: ElementData; } export type DrawInteractive = Interactive<{ use(type: DrawInteractiveOptions['type']): void; clean(): void; }>; export declare function createInteractive(interactiveManager: InteractiveManager, options?: DrawInteractiveOptions): DrawInteractive;