import { Maps, Map } from '../maps' import { Polygon as QQPolygon, PolygonOptions as QQPolygonOptions } from '../maps/qq/types' import { Polygon as GPolygon } from '../maps/google/types' import { useCustomEvent } from '@dcloudio/uni-components' import props from './props' export interface Point { latitude: number longitude: number } export type CustomEventTrigger = ReturnType type OnMapReadyCallback = ( map: Map, maps: Maps, trigger: CustomEventTrigger ) => void export type OnMapReady = (callback: OnMapReadyCallback) => void export type Polygon = QQPolygon | GPolygon export type PolygonOptions = QQPolygonOptions & google.maps.PolygonOptions export type Props = Record export interface EventObj { [key: string]: string }