weather-te
Version:
A light weather visualization library.
41 lines (40 loc) • 1.25 kB
TypeScript
import { Client } from '../client';
export declare class AmapClient extends Client {
constructor();
renderColorMapTileFunction(map: any, bsw: any, bne: any): void;
/**
* 风粒子
* @param map 地图
* @param bsw 视窗左下角经纬度坐标
* @param bne 视窗右上角经纬度坐标
* @returns
*/
renderParticleFunction(map: any, bsw: any, bne: any): HTMLCanvasElement;
/**
* 风羽图渲染
* @param map 地图
* @param bsw 视窗左下角经纬度坐标
* @param bne 视窗右上角经纬度坐标
* @returns
*/
renderFeatherFunction(map: any, bsw: any, bne: any): HTMLCanvasElement;
/**
* 计算屏幕视窗大小
* @param map 地图
* @returns
*/
getExtent(map: any, bsw: any, bne: any): {
southWestX: number;
southWestY: number;
northEastX: number;
northEastY: number;
};
/**
* 获取点击的坐标并查询对应数据
* @param pixel 当前点击的坐标
* @param extent3857 屏幕视窗大小
* @param zoom 缩放等级
* @returns
*/
decodeValue(pixel: number[], extent3857: object, zoom: number): string;
}