import * as maptalks from 'maptalks'; import type { BaiduInfoBox } from './map/overlay/baidu-info-box'; import type { GoogleLabel } from './map/overlay/google-label'; /** * Map相关的各种类型的联合, 可以用来简化一部分代码的书写 */ export type UnionMap = google.maps.Map | BMap.Map | H.Map | maptalks.Map; export type UnionBaiduIcon = BMap.Icon | BMap.Symbol; export type UnionGoogleIcon = google.maps.Icon | google.maps.Symbol | google.maps.UrlIcon; export type UnionTalksIcon = maptalks.AnyMarkerSymbol | maptalks.AnyMarkerSymbol[]; export type UnionInfoWindow = google.maps.InfoWindow | BMap.InfoWindow | maptalks.ui.InfoWindow; export type UnionAutocomplete = google.maps.places.Autocomplete | BMap.Autocomplete; export type UnionPlacesService = google.maps.places.PlacesService | BMap.LocalSearch; export type UnionGoogleOverlay = google.maps.Marker | google.maps.Polyline | google.maps.Polygon | google.maps.Circle | google.maps.Rectangle | GoogleLabel; export type UnionBaiduOverlay = BMap.Marker | BMap.Polyline | BMap.Polygon | BMap.Circle | BMap.Label | BaiduInfoBox; export type UnionTalksOverlay = maptalks.Geometry | maptalks.ui.UIMarker; export type UnionGoogleEventTarget = google.maps.MVCObject; export type UnionBaiduEventTarget = UnionBaiduOverlay | BMap.InfoWindow | BMap.Autocomplete | BMap.Map; export type UnionTalksEventTarget = maptalks.Eventable; export type UnionBaiduShape = BMap.Polyline | BMap.Polygon | BMap.Circle; export type UnionGoogleShape = google.maps.Polyline | google.maps.Polygon | google.maps.Circle | google.maps.Rectangle; export type UnionTalksShape = maptalks.LineString | maptalks.Polygon | maptalks.Circle | maptalks.Rectangle; export type UnionControl = BMap.Control | HTMLElement; export type GoogleLayer = google.maps.TrafficLayer | google.maps.TransitLayer | google.maps.KmlLayer | google.maps.BicyclingLayer; //# sourceMappingURL=unions.d.ts.map