logo
Style Spec

Sky

Add sky and fog to the map.

This feautre is still under development and is not yet available in the latest release.

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

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

fog-color

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

The base color for the fog.

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

sky-color

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

The base color for the sky.

MapLibre Style repository Edit page