UNPKG

@tuoyuan/map-adapter-tmap

Version:

天地图适配器

33 lines (32 loc) 1.13 kB
import { BaseMarker, Position, AbstractMarker, IMarkerStyle, IInfoWindowOptions, IMarker } from '@tuoyuan/map-adapter-lib'; export declare class TMapMarker<T = any> extends BaseMarker<T> implements AbstractMarker { private _ctx; protected currentLngLat: any; /** 天地图marker实例 */ iconInstance: any; labelInstance: any; busInstance: any; app: any; container: any; constructor(ctx: any, marker: IMarker<T>); private initEvent; private renderIcon; private renderLabel; setName(name: string): void; setIcon(icon: string): void; setPosition(position: ConstructorParameters<typeof Position>): void; setLabelPosition(position: ConstructorParameters<typeof Position>): void; setLabel(text: string): void; setFontSize(size: number): void; setBackgroundColor(color: string): void; openInfoWindow(options: IInfoWindowOptions): void; closeInfoWindow(): void; setStyle(style: IMarkerStyle): void; hidden(): void; show(): void; showLabel(): void; hiddenLabel(): void; getInstances(): any[]; remove(): void; panTo(): void; }