Skip to content

Sky

The map's sky configuration.

sky: {
    "sky-color": "#199EF3",
    "fog-color": "#00ff00",
    "horizon-blend": 0.5,
    "fog-blend": 0.6
}

sky-color

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

The base color for the sky.

fog-color

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

The base color for the fog.

fog-blend

Optional number. 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-blend

Optional number. Defaults to 0.8. Supports interpolate expressions. Transitionable

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