Set fog on a Mapbox GL map
set_fog(
map,
range = NULL,
color = NULL,
horizon_blend = NULL,
high_color = NULL,
space_color = NULL,
star_intensity = NULL
)
The updated map object.
A map object created by the mapboxgl
function or a proxy object.
A numeric vector of length 2 defining the minimum and maximum range of the fog.
A string specifying the color of the fog.
A number between 0 and 1 controlling the blending of the fog at the horizon.
A string specifying the color of the fog at higher elevations.
A string specifying the color of the fog in space.
A number between 0 and 1 controlling the intensity of the stars in the fog.