ol-owm
Version:
Weather layer for OpenLayers and Leaflet using OpenWeatherMap
28 lines (27 loc) • 739 B
TypeScript
import { Map as LeafletMap } from "leaflet";
import { Properties } from "./interface/properties.interface";
export declare class LeafletWeather {
private map;
private owmKey;
private properties;
private layerGroup?;
private popup;
private activeTileLayer;
private windFetchController;
private wind;
private activeCities;
activeKey: string | null;
activeWind: boolean;
constructor(map: LeafletMap, 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 onMapDoubleClick;
}