@watergis/maplibre-gl-sky
Version:
This repository is to add sky color to maplibre-gl-js smartly
18 lines • 818 B
TypeScript
import { Map } from 'maplibre-gl';
import { type AddToOptions, type Options, type TimeType } from './interfaces';
export declare class SkyControl {
private map?;
private options;
private addToOptions?;
constructor(options?: Options);
setOptions(options: Options): void;
addTo(map: Map, options?: AddToOptions): void;
private updateSky;
private getSky;
getTimesByLocation(lng: number, lat: number, date: Date, addBuffer?: boolean): {
type: TimeType;
date: Date;
}[];
getBestTimeNameByLocation(lng: number, lat: number, date: Date): "sunrise" | "sunriseEnd" | "goldenHourEnd" | "solarNoon" | "goldenHour" | "sunsetStart" | "sunset" | "dusk" | "nauticalDusk" | "night" | "nadir" | "nightEnd" | "nauticalDawn" | "dawn";
}
//# sourceMappingURL=SkyControl.d.ts.map