-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
AMap.d.ts
30 lines (27 loc) · 999 Bytes
/
AMap.d.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
/* eslint-disable import/no-extraneous-dependencies */
/* eslint-disable max-classes-per-file */
// import '@amap/amap-jsapi-types';
import 'amap-jsapi-v2-types';
declare global {
namespace AMap {}
// 对 amap type 做扩展
namespace AMapUI {
export type SimpleMarkerOptions = Omit<AMap.MarkerOptions, 'content'> & {
iconTheme?: string;
iconStyle?: string | object;
iconLabel?: string | object;
showPositionPoint?: boolean | object;
containerClassNames?: string;
};
export class SimpleMarker extends AMap.Marker {
constructor(opts?: SimpleMarkerOptions);
setIconStyle(iconStyle: string): void;
setIconThemeAndStyle(iconTheme: string, iconStyle: string): void;
setIconLabel(iconLabel: string | object): void;
setContainerClassNames(containerClassNames: string): void;
showPositionPoint(): void;
hidePositionPoint(): void;
}
export const loadUI: (plugins: string | string[], cb: any) => void;
}
}