Skip to main content

Sky and fog

To explore immersive details, users need to increase zoom and pitch of the map. With a large map pitch, users can see the sky and fog on the horizon, which makes the map look more realistic. This section describes how to configure the maximum pitch of the map, sky color and fog color on the horizon.

Sky and fog

Maximum pitch configuration

Maximum pitch of the map may be configured in two ways:

Recommended value: less than 70 degrees.
Maximum pitch of the map is limited on small zooms (zoom < 16.5) to 45 degrees by default, also it is limited with maxPitch. You can control that limit in two ways:

Recommended value: 45 degrees.

Sky and fog customization

  1. Open the Style editor.
  2. In the left settings panel, select the Other > Environment tab. Вкладка редактора

Parameter are described below.

Sky color

Configure the color of the sky on the horizon. Example of the new color:

Sky color custom

Fog color

Configure the color of the fog that hides objects in the distance. Example:

Fog color custom

Turning off the sky and fog

To turn the sky or fog off, set any transparent color for the Sky color or Fog color parameters.

Sky and fog turned off