• 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 more

    Declaration

    Swift

    @_documentation(visibility: public)
    @_spi(Experimental)
    public struct AmbientLight : Codable, StyleEncodable
  • A light that has a direction and is located at infinite, so its rays are parallel. Simulates the sun light and it can cast shadows

    See more

    Declaration

    Swift

    @_documentation(visibility: public)
    @_spi(Experimental)
    public struct DirectionalLight : Codable, StyleEncodable
  • A global directional light source which is only applied on 3D layers and hillshade layers. Using this type disables other light sources.

    See more

    Declaration

    Swift

    public struct FlatLight : Codable, StyleEncodable
  • Supported light types

    See more

    Declaration

    Swift

    public struct LightType : RawRepresentable, Codable
  • Information about a light

    See more

    Declaration

    Swift

    public struct LightInfo