XYZ Maps Documentation
    Preparing search index...

    Interface AmbientLight

    The AmbientLight interface represents ambient lighting, which provides a constant level of illumination across all objects.

    interface AmbientLight {
        color:
            | Color
            | StyleZoomRange<Color>
            | ((zoomlevel: number) => Color)
            | StyleExpression<Color>;
        intensity?: number;
        type: "ambient";
    }

    Hierarchy

    • Light
      • AmbientLight
    Index
    color:
        | Color
        | StyleZoomRange<Color>
        | ((zoomlevel: number) => Color)
        | StyleExpression<Color>

    The color of the light. Can be specified as a Color value, a StyleZoomRange<Color>, a function that returns a Color based on zoom level, or a StyleExpression<Color>.

    intensity?: number

    The intensity of the light. This property is optional and defaults to 1 if not specified.

    type: "ambient"

    The type of light. For AmbientLight, this is always 'ambient'.