Skip to content

Sky

The map's sky configuration. Note: this definition is still experimental and is under develoment in maplibre-gl-js.

sky: {
    "sky-color": "#199EF3",
    "sky-horizon-blend": 0.5,
    "horizon-color": "#ffffff",
    "horizon-fog-blend": 0.5,
    "fog-color": "#0000ff",
    "fog-ground-blend": 0.5,
    "atmosphere-blend": [
        "interpolate",
        ["linear"],
        ["zoom"],
        0,
        1,
        10,
        1,
        12,
        0
    ]
}

sky-color

Optional color. Defaults to #88C6FC. Supports interpolate expressions. Transitionable.

The base color for the sky.

horizon-color

Optional color. Defaults to #ffffff. Supports interpolate expressions. Transitionable.

The base color at the horizon.

fog-color

Optional color. Defaults to #ffffff. Supports interpolate expressions. Transitionable.

The base color for the fog. Requires 3D terrain.

fog-ground-blend

Optional number in range [0, 1]. Defaults to 0.5. Supports interpolate expressions. Transitionable.

How to blend the fog over the 3D terrain. A value between 0 and 1. Where 0 is the map center and 1 is the horizon

horizon-fog-blend

Optional number in range [0, 1]. Defaults to 0.8. Supports interpolate expressions. Transitionable.

How to blend the fog color and the horizon color. A value between 0 and 1. Where 0 is the horizon and 1 is map-height / 2

sky-horizon-blend

Optional number in range [0, 1]. Defaults to 0.8. Supports interpolate expressions. Transitionable.

How to blend the atmosphere. A value between 0 and 1. Where 1 is visible atmosphere and 0 is hidden. It is best to interpolate this expression when using globe

atmosphere-blend

Optional number in range [0, 1]. Defaults to 0.8. Supports interpolate expressions. Transitionable.

How to blend the the sky color and the horizon color. A value between 0 and 1.