Mapbox spec: atmosphere
import { Atmosphere } from '@rnmapbox/maps';
Atmosphere
AtmosphereLayerStyleProps
required FIX ME NO DESCRIPTION
Name: range
Mapbox spec: range
The start and end distance range in which fog fades from fully transparent to fully opaque. The distance to the point at the center of the map is defined as zero, so that negative range values are closer to the camera, and positive values are farther away.
array<number>
[0.5,10]
-20
20
Parameters: zoom, measure-light
Name: rangeTransition
The transition affecting any changes to this layer’s range property.
{ duration, delay }
milliseconds
{duration: 300, delay: 0}
Name: color
Mapbox spec: color
The color of the atmosphere region immediately below the horizon and within the range
and above the horizon and within horizonBlend
. Using opacity is recommended only for smoothly transitioning fog on/off as anything less than 100% opacity results in more tiles loaded and drawn.
color
#ffffff
Parameters: zoom, measure-light
Name: colorTransition
The transition affecting any changes to this layer’s color property.
{ duration, delay }
milliseconds
{duration: 300, delay: 0}
Name: highColor
Mapbox spec: high-color
The color of the atmosphere region above the horizon, highColor
extends further above the horizon than the color
property and its spread can be controlled with horizonBlend
. The opacity can be set to 0
to remove the high atmosphere color contribution.
color
#245cdf
Parameters: zoom, measure-light
Name: highColorTransition
The transition affecting any changes to this layer’s highColor property.
{ duration, delay }
milliseconds
{duration: 300, delay: 0}
Name: spaceColor
Mapbox spec: space-color
The color of the region above the horizon and after the end of the horizonBlend
contribution. The opacity can be set to 0
to have a transparent background.
color
interpolate,linear,zoom,4,#010b19,7,#367ab9
Parameters: zoom, measure-light
Name: spaceColorTransition
The transition affecting any changes to this layer’s spaceColor property.
{ duration, delay }
milliseconds
{duration: 300, delay: 0}
Name: horizonBlend
Mapbox spec: horizon-blend
Horizon blend applies a smooth fade from the color of the atmosphere to the color of space. A value of zero leaves a sharp transition from atmosphere to space. Increasing the value blends the color of atmosphere into increasingly high angles of the sky.
number
interpolate,linear,zoom,4,0.2,7,0.1
0
1
Parameters: zoom, measure-light
Name: horizonBlendTransition
The transition affecting any changes to this layer’s horizonBlend property.
{ duration, delay }
milliseconds
{duration: 300, delay: 0}
Name: starIntensity
Mapbox spec: star-intensity
A value controlling the star intensity where 0
will show no stars and 1
will show stars at their maximum intensity.
number
interpolate,linear,zoom,5,0.35,6,0
0
1
Parameters: zoom, measure-light
Name: starIntensityTransition
The transition affecting any changes to this layer’s starIntensity property.
{ duration, delay }
milliseconds
{duration: 300, delay: 0}