A SunConsumer that drives MapLibre's sky/fog tint (map.setSky) from the sun
altitude — sky dome, horizon, warm fog at golden hour, and the globe atmosphere halo
fading out at night. Purely visual (MapLibre's sky has no real sun disk), derived from the
same SunState as everything else. Created for you by setTimeOfDay.
// setTimeOfDay({ map }) wires this for you; by hand, after the style is up: map.on('load', () => { constsystem = newGeoSunSystem(map, { controllers: [newSkyController(map)] }); system.update(newDate()); // paints the sky/fog for this instant });
A SunConsumer that drives MapLibre's sky/fog tint (
map.setSky) from the sun altitude — sky dome, horizon, warm fog at golden hour, and the globe atmosphere halo fading out at night. Purely visual (MapLibre's sky has no real sun disk), derived from the same SunState as everything else. Created for you by setTimeOfDay.Example