Atmosphere
public struct Atmosphere : Codable
A style’s fog property is a global effect that improves depth perception by fading out distant objects.
See also
Mapbox Style Specification-
The color of the atmosphere region immediately below the horizon and within the
rangeand above the horizon and withinhorizon-blend. Using opacity is recommended only for smoothly transitioning fog on/off as anything less than 100% opacity results in more tiles loaded and drawn.Declaration
Swift
public var color: Value<StyleColor>? -
Transition property for
colorDeclaration
Swift
public var colorTransition: StyleTransition? -
The color of the atmosphere region above the horizon,
high-colorextends further above the horizon than thecolorproperty and its spread can be controlled withhorizon-blend. The opacity can be set to0to remove the high atmosphere color contribution.Declaration
Swift
public var highColor: Value<StyleColor>? -
Transition property for
highColorDeclaration
Swift
public var highColorTransition: StyleTransition? -
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.
Declaration
Swift
public var horizonBlend: Value<Double>? -
Transition property for
horizonBlendDeclaration
Swift
public var horizonBlendTransition: StyleTransition? -
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.
Declaration
Swift
public var range: Value<[Double]>? -
Transition property for
rangeDeclaration
Swift
public var rangeTransition: StyleTransition? -
The color of the region above the horizon and after the end of the
horizon-blendcontribution. The opacity can be set to0to have a transparent background.Declaration
Swift
public var spaceColor: Value<StyleColor>? -
Transition property for
spaceColorDeclaration
Swift
public var spaceColorTransition: StyleTransition? -
A value controlling the star intensity where
0will show no stars and1will show stars at their maximum intensity.Declaration
Swift
public var starIntensity: Value<Double>? -
Transition property for
starIntensityDeclaration
Swift
public var starIntensityTransition: StyleTransition? -
Undocumented
Declaration
Swift
public init()
Atmosphere Structure Reference