UNPKG

weather-te

Version:

A light weather visualization library.

45 lines (44 loc) 1.64 kB
import type { Map, RasterPaint } from 'mapbox-gl'; import { Client } from '../client'; import { Extent } from '../../util/util'; export interface MapboxLayerConfig { layerId?: string; beforeId?: string; paint?: RasterPaint; } export declare class MapboxClient extends Client { particle: boolean; initColorMapTileLayer(map: Map, mapDiv: HTMLElement, layerConfig?: MapboxLayerConfig): void; initColorMapLayer(map: Map, mapDiv: any, layerConfig?: MapboxLayerConfig): void; initParticleLayer(map: Map, mapDiv: any, layerConfig?: MapboxLayerConfig): void; initFeatherLayer(map: Map, mapDiv: any, layerConfig?: MapboxLayerConfig): void; private baseInit; renderColorMapTileFunction(map: any, mapDiv: any, onerror?: any): HTMLCanvasElement; renderColorMapFunction(map: any, mapDiv: any): HTMLCanvasElement; renderFeatherFunction(map: any, mapDiv: any, onerror?: any): HTMLCanvasElement; /** * 粒子渲染 * * @deprecated since version 0.1.34 * @param map * @param mapDiv */ renderParticleFunction(map: any, mapDiv: any): HTMLCanvasElement; startParticle(map: any, mapDiv: any): void; clearParticle(): HTMLCanvasElement; private startParticleAnimation; private stopParticleAnimation; /** * 返回边界大小(经纬度) * @param map 地图 * @returns 西北,东北,东南,西南 */ getLonLat(map: any): any[][]; /** * 计算屏幕视窗边界 * @param map 地图 * @returns */ getExtent(map: any): Extent; onMapDestroy(map: Map): void; }