import type { MyMap } from 'map-sdk-leaflet/es/sdk/ShipxyAPISDK'; export interface Weatherdetail { forecastaging: string; meteorological: string; winddirection: string; windpower: string; waveheight: null; visibility: string; meteorological_icon?: string; imageUrl?: string; publishtime?: string; } export interface SeaForecastInterFaca { seaarea: string; publishtime: string; centerlatitude: string | number; centerlongititude: string; weatherdetail: Array; opacity: number; offset: number[]; direction: string; publishdate: Date | null; forecastaging_str: any; meteorological: string; } /** * 海洋预报 */ declare class SeaForecast implements SeaForecastInterFaca { seaarea: string; publishtime: string; centerlatitude: string; centerlongititude: string; meteorological: string; opacity: number; offset: number[]; direction: string; weatherdetail: Array; publishdate: Date | null; forecastaging_str: any; } declare class SeaAreaForecastService { static ajaxs: XMLHttpRequest[]; private _layerGroup; private _map; private _seaForecasts_yanan; private _seaForecasts_jinhai; private _seaForecasts_yuanhai; private _seaForecasts; private callbackListener?; constructor(map: MyMap); /** * 添加气象图标显示 * @param type 1-沿岸天气,2-近海,3-远海 其他图层 * @param data */ addSeaForecasts(type: number, data: SeaForecast[]): void; _drawSeaForecast(data: SeaForecastInterFaca): void; _judgeImage(url: string): any; _drawSeaForecasts(): void; close(): void; addEventCallbackListener(listener: (params: any) => void): void; removeEventCallbackListener(): void; } export { SeaAreaForecastService, SeaForecast };