The MapLibre map to drive.
Id of the raster basemap layer in the map's style.
Restore the basemap layer's original brightness + saturation (best-effort; no-op if the layer or style is gone).
Set the basemap's brightness + saturation from SunState.gradeLinear. On the first
call it snapshots the layer's original raster-brightness-max / raster-saturation so
BasemapController.dispose can restore them. No-op if the layer is not present yet.
A SunConsumer that grades a MapLibre raster basemap (satellite / aerial imagery) with the sun, so the ground darkens at night and never stays daylight-bright under a night sky. Without this the basemap is the one un-lit surface in the scene — buildings, point clouds and splats all grade via SunState.gradeLinear, but raster imagery is drawn by MapLibre and can only be touched through its
raster-*paint properties. Drivesraster-brightness-maxfrom the samegradeLinearthe geometry uses (so the ground and the buildings dim together) and eases in desaturation at deep night for a cooler, moon-lit read. Wired by setTimeOfDay when you passbasemapLayerId.Example