UNPKG

@orca-fe/x-map

Version:
37 lines (36 loc) 1.04 kB
import BaseInstance, { InstanceOptions } from './BaseInstance'; import { Point } from '../defs'; /** * mapbox-gl */ declare class MapBoxGLInstance extends BaseInstance { mapboxOptions: any; constructor(mapboxOptions?: any); init(id: string | HTMLElement, options: InstanceOptions): Promise<void>; destroy(): void; lnglatToPixel([lng, lat]: Point): Point; pixelToLnglat([x, y]: Point): Point; changeTheme: () => void; resize(): void; getZoom(): any; setZoom(zoom: number): any; setZoomAndCenter(zoom: number, [lng, lat]: Point): void; zoomIn(): void; zoomOut(): void; panTo([lng, lat]: Point): void; getCenter(): Point; setCenter([lng, lat]: Point): void; getPitch(): any; setPitch(pitch: any): any; /** * 设置旋转角度 */ setRotate(deg: any, options?: { animate: boolean; }, ...other: any[]): void; /** * 获取旋转角度 */ getRotate(): any; } export default MapBoxGLInstance;