UNPKG

@tuoyuan/map-adapter-amap

Version:

高德地图适配器

27 lines (26 loc) 910 B
import { BaseMarker, Position, AbstractMarker, IInfoWindowOptions, IMarker, IMarkerStyle } from '@tuoyuan/map-adapter-lib'; export declare class AMapMarker<T = any> extends BaseMarker<T> implements AbstractMarker { private _ctx; /** 高德地图marker实例 */ iconInstance: any; labelInstance: any; constructor(ctx: any, marker: IMarker<T>); private initEvent; private renderIcon; private renderLabel; private get map(); setName(name: string): void; setPosition(position: ConstructorParameters<typeof Position>): void; setIcon(icon: string): void; setLabel(text: string): void; hidden(): void; show(): void; showLabel(): void; hiddenLabel(): void; getInstances(): any[]; remove(): void; panTo(): void; openInfoWindow(options: IInfoWindowOptions): void; closeInfoWindow(): void; setStyle(style: IMarkerStyle): void; }