Factory for light effects. You can set a light by doing:
map.effects.light = createHeadLight();
The default light is a head light. You can disable lighting by assigning null.
Type representing a light effect.
Creates a directional light source which automatically follows the orientation of the viewer.
The head light direction is linked to the orientation of the camera in 3D. That is a useful feature in many applications where lighting can improve a user’s perception of shape. In this case, lighting is not used to represent the time of day. The user does not need the whole earth to have a bright side and a dark side.
This light only has effect on a 3D WebGLMap.
The lighting affects:
An options object containing headlight options.
the head light
Creates a sun light source based on a specific time.
This light will simulate a sun light at the given time.
This light has effect on a 2D or 3D WebGLMap.
In 3D the lighting affects:
an options object containing light options.
the sun light