AmbientLight
public struct AmbientLight : Codable, StyleEncodable
An indirect light affecting all objects in the map adding a constant amount of light on them. It has no explicit direction and cannot cast shadows.
See also
Mapbox Style Specification-
Unique light name
Declaration
Swift
public let id: String
-
Type of the light.
Declaration
Swift
public let type: LightType
-
Color of the ambient light.
Declaration
Swift
public var color: Value<StyleColor>?
-
Transition property for
color
Declaration
Swift
public var colorTransition: StyleTransition?
-
A multiplier for the color of the ambient light.
Declaration
Swift
public var intensity: Value<Double>?
-
Transition property for
intensity
Declaration
Swift
public var intensityTransition: StyleTransition?
-
Creates a new Ambient light.
Declaration
Swift
public init(id: String = UUID().uuidString)
-
Declaration
Swift
public func encode(to encoder: Encoder) throws
-
Declaration
Swift
public init(from decoder: Decoder) throws