Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface AmbientLight

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

Hierarchy

  • Light
    • AmbientLight

Index

Properties

Properties

color

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>.

Optional intensity

intensity: number

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

type

type: "ambient"

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

Generated using TypeDoc