UNPKG

@tuoyuan/map-adapter-amap

Version:

高德地图适配器

25 lines (24 loc) 876 B
import { BasePolygon, Position, AbstractPolygon, IInfoWindowOptions, IPolygon, IPolygonStyle } from '@tuoyuan/map-adapter-lib'; export declare class AMapPolygon<T = any> extends BasePolygon<T> implements AbstractPolygon { private _ctx; polygonInstance: any; labelInstance: any; infoWindowInstance: any; constructor(ctx: any, polygon: IPolygon<T>); private initEvent; renderPolygon(): void; private renderLabel; setPath(path: Array<ConstructorParameters<typeof Position>>): void; setStyle(style: IPolygonStyle): void; hidden(): void; show(): void; showLabel(): void; hiddenLabel(): void; getInstances(): any[]; remove(): void; panTo(): void; getBounds(): import('@tuoyuan/map-adapter-lib').IBounds; getArea(): any; openInfoWindow(options: IInfoWindowOptions): void; closeInfoWindow(): void; }