UNPKG

ol-owm

Version:

Weather layer for OpenLayers and Leaflet using OpenWeatherMap

32 lines (31 loc) 826 B
import { Map as OLMap } from "ol"; import { Properties } from "./interface/properties.interface"; export declare class OpenLayersWeather { private map; private owmKey; private properties; private popupElement; private popupOverlay; private doubleClickZoom?; private layer?; private onMoveEnd; private windFetchController; private wind; private tileLayer; private activeCities; activeKey: string | null; activeWind: boolean; constructor(map: OLMap, owmKey: string, properties?: Properties); status(): boolean; layers(): { name: string; key: string; }[]; setLayer(key: string | null): void; toggleWind(): void; show(): Promise<void>; hide(): void; private update; private onMapClick; private onMapDoubleClick; }