# Layers

A style's `layers` property lists all the layers available in that style. The type of layer is specified by the `type` property, and must be one of `background`, `fill`, `line`, `symbol`, `raster`, `circle`, `fill-extrusion`, `heatmap`, `hillshade`, `color-relief`.

Except for layers of the `background` type, each layer needs to refer to a source. Layers take the data that they get from a source, optionally filter features, and then define how those features are styled.

```json
"layers": [
    {
        "id": "coastline",
        "source": "maplibre",
        "source-layer": "countries",
        "type": "line",
        "paint": {"line-color": "#198EC8"}
    }
]
```

## Layer Properties

### id

*Required [string](<https://maplibre.org/maplibre-style-spec/types/index.md#string>).*

Unique layer name.

### type

*Required [enum](<https://maplibre.org/maplibre-style-spec/types/index.md#enum>). Possible values: `fill`, `line`, `symbol`, `circle`, `heatmap`, `fill-extrusion`, `raster`, `hillshade`, `color-relief`, `background`.*

Rendering type of this layer.

- `fill`: A filled polygon with an optional stroked border.
- `line`: A stroked line.
- `symbol`: An icon or a text label.
- `circle`: A filled circle.
- `heatmap`: A heatmap.
- `fill-extrusion`: An extruded (3D) polygon.
- `raster`: Raster map textures such as satellite imagery.
- `hillshade`: Client-side hillshading visualization based on DEM data. The implementation supports Mapbox Terrain RGB, Mapzen Terrarium tiles and custom encodings.
- `color-relief`: Client-side elevation coloring based on DEM data. The implementation supports Mapbox Terrain RGB, Mapzen Terrarium tiles and custom encodings.
- `background`: The background color or pattern of the map.

### metadata

*Optional.*

Arbitrary properties useful to track with the layer, but do not influence rendering. Properties should be prefixed to avoid collisions, like 'maplibre:'.

```json
"metadata": {"source:comment": "Hydrology FCCODE 460 - Narrow wash"}
```

### source

*Optional [string](<https://maplibre.org/maplibre-style-spec/types/index.md#string>).*

Name of a source description to be used for this layer. Required for all layer types except `background`.

### source-layer

*Optional [string](<https://maplibre.org/maplibre-style-spec/types/index.md#string>).*

Layer to use from a vector tile source. Required for vector tile sources; prohibited for all other source types, including GeoJSON sources.

### minzoom

*Optional [number](<https://maplibre.org/maplibre-style-spec/types/index.md#number>) in range `[0, 24]`.*

The minimum zoom level for the layer. At zoom levels less than the minzoom, the layer will be hidden.

### maxzoom

*Optional [number](<https://maplibre.org/maplibre-style-spec/types/index.md#number>) in range `[0, 24]`.*

The maximum zoom level for the layer. At zoom levels equal to or greater than the maxzoom, the layer will be hidden.

### filter

*Optional [filter](<https://maplibre.org/maplibre-style-spec/expressions/index.md>).*

A expression specifying conditions on source features. Only features that match the filter are displayed. Zoom expressions in filters are only evaluated at integer zoom levels. The [`feature-state`](<https://maplibre.org/maplibre-style-spec/expressions/index.md#feature-state>) expression is not supported in filter expressions.

### layout

*Optional [layout](<https://maplibre.org/maplibre-style-spec/layers/index.md#layout>).*

Layout properties for the layer.

### paint

*Optional [paint](<https://maplibre.org/maplibre-style-spec/layers/index.md#paint>).*

Default paint properties for this layer.

## Background

### visibility

*[Layout](<#layout>) property. Optional [enum](<https://maplibre.org/maplibre-style-spec/types/index.md#enum>). Possible values: `visible`, `none`. Defaults to `"visible"`.*

Whether this layer is displayed.

- `visible`: The layer is shown.
- `none`: The layer is not shown.

| SDK Support | MapLibre GL JS | MapLibre Native<br>Android | MapLibre Native<br>iOS |
| --- | --- | --- | --- |
| basic functionality | 0.10.0 | 2.0.1 | 2.0.0 |
| [`global-state`](<https://maplibre.org/maplibre-style-spec/expressions/index.md#global-state>) expression | 5.16.0 | 13.7.1 | 7.0.0 |

### background-color

*[Paint](<#paint>) property. Optional [color](<https://maplibre.org/maplibre-style-spec/types/index.md#color>). Defaults to `"#000000"`. Disabled by [`background-pattern`](<#background-pattern>). Supports [interpolate](<https://maplibre.org/maplibre-style-spec/expressions/index.md#interpolate>) expressions. [Transitionable](<https://maplibre.org/maplibre-style-spec/transition/index.md>).*

The color with which the background will be drawn.

| SDK Support | MapLibre GL JS | MapLibre Native<br>Android | MapLibre Native<br>iOS |
| --- | --- | --- | --- |
| basic functionality | 0.10.0 | 2.0.1 | 2.0.0 |
| [`global-state`](<https://maplibre.org/maplibre-style-spec/expressions/index.md#global-state>) expression | 5.6.0 | 13.7.1 | 7.0.0 |

### background-pattern

*[Paint](<#paint>) property. Optional [resolvedImage](<https://maplibre.org/maplibre-style-spec/types/index.md#resolvedimage>). [Transitionable](<https://maplibre.org/maplibre-style-spec/transition/index.md>).*

Name of image in sprite to use for drawing an image background. For seamless patterns, image width and height must be a factor of two (2, 4, 8, ..., 512). Note that zoom-dependent expressions will be evaluated only at integer zoom levels.

| SDK Support | MapLibre GL JS | MapLibre Native<br>Android | MapLibre Native<br>iOS |
| --- | --- | --- | --- |
| basic functionality | 0.10.0 | 2.0.1 | 2.0.0 |
| data-driven styling | Not supported yet | Not supported yet | Not supported yet |
| [`global-state`](<https://maplibre.org/maplibre-style-spec/expressions/index.md#global-state>) expression | 5.6.0 | 13.7.1 | 7.0.0 |

### background-opacity

*[Paint](<#paint>) property. Optional [number](<https://maplibre.org/maplibre-style-spec/types/index.md#number>) in range `[0, 1]`. Defaults to `1`. Supports [interpolate](<https://maplibre.org/maplibre-style-spec/expressions/index.md#interpolate>) expressions. [Transitionable](<https://maplibre.org/maplibre-style-spec/transition/index.md>).*

The opacity at which the background will be drawn.

| SDK Support | MapLibre GL JS | MapLibre Native<br>Android | MapLibre Native<br>iOS |
| --- | --- | --- | --- |
| basic functionality | 0.10.0 | 2.0.1 | 2.0.0 |
| [`global-state`](<https://maplibre.org/maplibre-style-spec/expressions/index.md#global-state>) expression | 5.6.0 | 13.7.1 | 7.0.0 |

## Fill

### fill-sort-key

*[Layout](<#layout>) property. Optional [number](<https://maplibre.org/maplibre-style-spec/types/index.md#number>).*

Sorts features in ascending order based on this value. Features with a higher sort key will appear above features with a lower sort key.

| SDK Support | MapLibre GL JS | MapLibre Native<br>Android | MapLibre Native<br>iOS |
| --- | --- | --- | --- |
| basic functionality | 1.2.0 | 9.1.0 | 5.8.0 |
| data-driven styling | 1.2.0 | 9.1.0 | 5.8.0 |
| [`global-state`](<https://maplibre.org/maplibre-style-spec/expressions/index.md#global-state>) expression | 5.7.0 | 13.7.1 | 7.0.0 |

### visibility

*[Layout](<#layout>) property. Optional [enum](<https://maplibre.org/maplibre-style-spec/types/index.md#enum>). Possible values: `visible`, `none`. Defaults to `"visible"`.*

Whether this layer is displayed.

- `visible`: The layer is shown.
- `none`: The layer is not shown.

| SDK Support | MapLibre GL JS | MapLibre Native<br>Android | MapLibre Native<br>iOS |
| --- | --- | --- | --- |
| basic functionality | 0.10.0 | 2.0.1 | 2.0.0 |
| [`global-state`](<https://maplibre.org/maplibre-style-spec/expressions/index.md#global-state>) expression | 5.16.0 | 13.7.1 | 7.0.0 |

### fill-antialias

*[Paint](<#paint>) property. Optional [boolean](<https://maplibre.org/maplibre-style-spec/types/index.md#boolean>). Defaults to `true`.*

Whether or not the fill should be antialiased.

| SDK Support | MapLibre GL JS | MapLibre Native<br>Android | MapLibre Native<br>iOS |
| --- | --- | --- | --- |
| basic functionality | 0.10.0 | 2.0.1 | 2.0.0 |
| [`global-state`](<https://maplibre.org/maplibre-style-spec/expressions/index.md#global-state>) expression | 5.6.0 | 13.7.1 | 7.0.0 |

### fill-opacity

*[Paint](<#paint>) property. Optional [number](<https://maplibre.org/maplibre-style-spec/types/index.md#number>) in range `[0, 1]`. Defaults to `1`. Supports [feature-state](<https://maplibre.org/maplibre-style-spec/expressions/index.md#feature-state>) and [interpolate](<https://maplibre.org/maplibre-style-spec/expressions/index.md#interpolate>) expressions. [Transitionable](<https://maplibre.org/maplibre-style-spec/transition/index.md>).*

The opacity of the entire fill layer. In contrast to the [`fill-color`](<https://maplibre.org/maplibre-style-spec/layers/index.md#fill-color>), this value will also affect the 1px stroke around the fill, if the stroke is used.

| SDK Support | MapLibre GL JS | MapLibre Native<br>Android | MapLibre Native<br>iOS |
| --- | --- | --- | --- |
| basic functionality | 0.10.0 | 2.0.1 | 2.0.0 |
| data-driven styling | 0.21.0 | 5.0.0 | 3.5.0 |
| [`global-state`](<https://maplibre.org/maplibre-style-spec/expressions/index.md#global-state>) expression | 5.6.0 | 13.7.1 | 7.0.0 |

### fill-layer-opacity

*[Paint](<#paint>) property. Optional [number](<https://maplibre.org/maplibre-style-spec/types/index.md#number>) in range `[0, 1]`. Defaults to `1`. Supports [interpolate](<https://maplibre.org/maplibre-style-spec/expressions/index.md#interpolate>) expressions. [Transitionable](<https://maplibre.org/maplibre-style-spec/transition/index.md>).*

Opacity applied to the layer as a whole. Unlike [`fill-opacity`](<https://maplibre.org/maplibre-style-spec/layers/index.md#fill-opacity>) and alpha values in [`fill-color`](<https://maplibre.org/maplibre-style-spec/layers/index.md#fill-color>), which are applied per feature and accumulate where fills overlap, `fill-layer-opacity` is applied once so overlapping fills appear as a single surface at the given opacity. When both `fill-opacity` and `fill-layer-opacity` are set, the per-feature, overlap accumulation is preserved, then `fill-layer-opacity` composites the result. This property affects only the layer it is set on and cannot be used to composite multiple layers together or control how this layer blends with layers above or below it.

![fill-opacity vs. fill-layer-opacity](<https://maplibre.org/maplibre-style-spec/assets/fill-layer-opacity.svg>)

| SDK Support | MapLibre GL JS | MapLibre Native<br>Android | MapLibre Native<br>iOS |
| --- | --- | --- | --- |
| basic functionality | 6.0.0 | ❌ ([\#4298](<https://github.com/maplibre/maplibre-native/issues/4298>)) | ❌ ([\#4298](<https://github.com/maplibre/maplibre-native/issues/4298>)) |
| [`global-state`](<https://maplibre.org/maplibre-style-spec/expressions/index.md#global-state>) expression | 6.0.0 | ❌ ([\#4298](<https://github.com/maplibre/maplibre-native/issues/4298>)) | ❌ ([\#4298](<https://github.com/maplibre/maplibre-native/issues/4298>)) |

### fill-layer-blend

*[Paint](<#paint>) property. Optional [enum](<https://maplibre.org/maplibre-style-spec/types/index.md#enum>). Possible values: `normal`, `multiply`, `color`, `luminosity`, `plus-lighter`, `screen`, `overlay`. Defaults to `"normal"`.*

Controls how the layer is composited with the content already rendered beneath it. Unlike per-feature opacity properties such as `fill-opacity`, this property affects the final composited layer output and determines how it interacts with the existing map contents.

![fill-layer-blend examples](<https://maplibre.org/maplibre-style-spec/assets/fill-layer-blend.svg>)

- `normal`: [Normal](<https://www.w3.org/TR/compositing-1/#blendingnormal>) blending. The layer is drawn on top of existing content using standard alpha compositing.
- `multiply`: [Multiply](<https://www.w3.org/TR/compositing-1/#blendingmultiply>) blending. The layer color is multiplied with the colors underneath, producing darker results. Useful for textures, hillshades, and combining raster and vector content.
- `color`: [Color](<https://www.w3.org/TR/compositing-1/#blendingcolor>) blending. Creates a color with the hue and saturation of the layer and the luminosity of the content underneath, preserving its gray levels. Useful for tinting monochrome content such as a hillshade.
- `luminosity`: [Luminosity](<https://www.w3.org/TR/compositing-1/#blendingluminosity>) blending. Creates a color with the luminosity of the layer and the hue and saturation of the content underneath. The inverse of `color`.
- `plus-lighter`: [Plus-lighter](<https://www.w3.org/TR/compositing-1/#porterduffcompositingoperators_plus>) blending. Additive blending. The layer color is added to the colors underneath, producing brighter results. Useful for glow and heat accumulation effects.
- `screen`: [Screen](<https://www.w3.org/TR/compositing-1/#blendingscreen>) blending. The inverse of the colors is multiplied, producing lighter results. Useful for glow, heatmap, and light-based effects.
- `overlay`: [Overlay](<https://www.w3.org/TR/compositing-1/#blendingoverlay>) blending. Multiplies or screens colors depending on the colors underneath, preserving highlights and shadows while adding contrast.

| SDK Support | MapLibre GL JS | MapLibre Native<br>Android | MapLibre Native<br>iOS |
| --- | --- | --- | --- |
| basic functionality | ❌ ([\#48](<https://github.com/maplibre/maplibre-gl-js/issues/48>)) | ❌ ([\#2963](<https://github.com/maplibre/maplibre-native/issues/2963>)) | ❌ ([\#2963](<https://github.com/maplibre/maplibre-native/issues/2963>)) |

### fill-color

*[Paint](<#paint>) property. Optional [color](<https://maplibre.org/maplibre-style-spec/types/index.md#color>). Defaults to `"#000000"`. Supports [feature-state](<https://maplibre.org/maplibre-style-spec/expressions/index.md#feature-state>) and [interpolate](<https://maplibre.org/maplibre-style-spec/expressions/index.md#interpolate>) expressions. [Transitionable](<https://maplibre.org/maplibre-style-spec/transition/index.md>).*

The color of the filled part of this layer. This color can be specified as `rgba` with an alpha component and the color's opacity will not affect the opacity of the 1px stroke, if it is used. When used with an SDF fill pattern, this serves as the foreground color of the pattern.

| SDK Support | MapLibre GL JS | MapLibre Native<br>Android | MapLibre Native<br>iOS |
| --- | --- | --- | --- |
| basic functionality | 0.10.0 | 2.0.1 | 2.0.0 |
| data-driven styling | 0.19.0 | 5.0.0 | 3.5.0 |
| SDF fill pattern colorization | ❌ ([\#8342](<https://github.com/maplibre/maplibre-gl-js/issues/8342>)) | ❌ ([\#4526](<https://github.com/maplibre/maplibre-native/issues/4526>)) | ❌ ([\#4526](<https://github.com/maplibre/maplibre-native/issues/4526>)) |
| [`global-state`](<https://maplibre.org/maplibre-style-spec/expressions/index.md#global-state>) expression | 5.6.0 | 13.7.1 | 7.0.0 |

### fill-outline-color

*[Paint](<#paint>) property. Optional [color](<https://maplibre.org/maplibre-style-spec/types/index.md#color>). Disabled by [`fill-pattern`](<#fill-pattern>). Requires `fill-antialias` to be `true`. Supports [feature-state](<https://maplibre.org/maplibre-style-spec/expressions/index.md#feature-state>) and [interpolate](<https://maplibre.org/maplibre-style-spec/expressions/index.md#interpolate>) expressions. [Transitionable](<https://maplibre.org/maplibre-style-spec/transition/index.md>).*

The outline color of the fill. Matches the value of [`fill-color`](<https://maplibre.org/maplibre-style-spec/layers/index.md#fill-color>) if unspecified.

| SDK Support | MapLibre GL JS | MapLibre Native<br>Android | MapLibre Native<br>iOS |
| --- | --- | --- | --- |
| basic functionality | 0.10.0 | 2.0.1 | 2.0.0 |
| data-driven styling | 0.19.0 | 5.0.0 | 3.5.0 |
| [`global-state`](<https://maplibre.org/maplibre-style-spec/expressions/index.md#global-state>) expression | 5.6.0 | 13.7.1 | 7.0.0 |

### fill-translate

*[Paint](<#paint>) property. Optional [array](<https://maplibre.org/maplibre-style-spec/types/index.md#array>). Units in pixels. Defaults to `[0,0]`. Supports [interpolate](<https://maplibre.org/maplibre-style-spec/expressions/index.md#interpolate>) expressions. [Transitionable](<https://maplibre.org/maplibre-style-spec/transition/index.md>).*

The geometry's offset. Values are `[x, y]` where negatives indicate left and up, respectively.

| SDK Support | MapLibre GL JS | MapLibre Native<br>Android | MapLibre Native<br>iOS |
| --- | --- | --- | --- |
| basic functionality | 0.10.0 | 2.0.1 | 2.0.0 |
| [`global-state`](<https://maplibre.org/maplibre-style-spec/expressions/index.md#global-state>) expression | 5.6.0 | 13.7.1 | 7.0.0 |

### fill-translate-anchor

*[Paint](<#paint>) property. Optional [enum](<https://maplibre.org/maplibre-style-spec/types/index.md#enum>). Possible values: `map`, `viewport`. Defaults to `"map"`. Requires [`fill-translate`](<#fill-translate>).*

Controls the frame of reference for [`fill-translate`](<https://maplibre.org/maplibre-style-spec/layers/index.md#fill-translate>).

- `map`: The fill is translated relative to the map.
- `viewport`: The fill is translated relative to the viewport.

| SDK Support | MapLibre GL JS | MapLibre Native<br>Android | MapLibre Native<br>iOS |
| --- | --- | --- | --- |
| basic functionality | 0.10.0 | 2.0.1 | 2.0.0 |
| [`global-state`](<https://maplibre.org/maplibre-style-spec/expressions/index.md#global-state>) expression | 5.6.0 | 13.7.1 | 7.0.0 |

### fill-pattern

*[Paint](<#paint>) property. Optional [resolvedImage](<https://maplibre.org/maplibre-style-spec/types/index.md#resolvedimage>). [Transitionable](<https://maplibre.org/maplibre-style-spec/transition/index.md>).*

Name of image in sprite to use for drawing image fills. For seamless patterns, image width and height must be a factor of two (2, 4, 8, ..., 512). Note that zoom-dependent expressions will be evaluated only at integer zoom levels.

| SDK Support | MapLibre GL JS | MapLibre Native<br>Android | MapLibre Native<br>iOS |
| --- | --- | --- | --- |
| basic functionality | 0.10.0 | 2.0.1 | 2.0.0 |
| data-driven styling | 0.49.0 | 6.5.0 | 4.4.0 |
| [`global-state`](<https://maplibre.org/maplibre-style-spec/expressions/index.md#global-state>) expression | 5.6.0 | 13.7.1 | 7.0.0 |

## Circle

### circle-sort-key

*[Layout](<#layout>) property. Optional [number](<https://maplibre.org/maplibre-style-spec/types/index.md#number>).*

Sorts features in ascending order based on this value. Features with a higher sort key will appear above features with a lower sort key.

| SDK Support | MapLibre GL JS | MapLibre Native<br>Android | MapLibre Native<br>iOS |
| --- | --- | --- | --- |
| basic functionality | 1.2.0 | 9.2.0 | 5.9.0 |
| data-driven styling | 1.2.0 | 9.2.0 | 5.9.0 |
| [`global-state`](<https://maplibre.org/maplibre-style-spec/expressions/index.md#global-state>) expression | 5.7.0 | 13.7.1 | 7.0.0 |

### visibility

*[Layout](<#layout>) property. Optional [enum](<https://maplibre.org/maplibre-style-spec/types/index.md#enum>). Possible values: `visible`, `none`. Defaults to `"visible"`.*

Whether this layer is displayed.

- `visible`: The layer is shown.
- `none`: The layer is not shown.

| SDK Support | MapLibre GL JS | MapLibre Native<br>Android | MapLibre Native<br>iOS |
| --- | --- | --- | --- |
| basic functionality | 0.10.0 | 2.0.1 | 2.0.0 |
| [`global-state`](<https://maplibre.org/maplibre-style-spec/expressions/index.md#global-state>) expression | 5.16.0 | 13.7.1 | 7.0.0 |

### circle-radius

*[Paint](<#paint>) property. Optional [number](<https://maplibre.org/maplibre-style-spec/types/index.md#number>) in range `[0, ∞)`. Units in pixels. Defaults to `5`. Supports [feature-state](<https://maplibre.org/maplibre-style-spec/expressions/index.md#feature-state>) and [interpolate](<https://maplibre.org/maplibre-style-spec/expressions/index.md#interpolate>) expressions. [Transitionable](<https://maplibre.org/maplibre-style-spec/transition/index.md>).*

Circle radius.

| SDK Support | MapLibre GL JS | MapLibre Native<br>Android | MapLibre Native<br>iOS |
| --- | --- | --- | --- |
| basic functionality | 0.10.0 | 2.0.1 | 2.0.0 |
| data-driven styling | 0.18.0 | 5.0.0 | 3.5.0 |
| [`global-state`](<https://maplibre.org/maplibre-style-spec/expressions/index.md#global-state>) expression | 5.6.0 | 13.7.1 | 7.0.0 |

### circle-color

*[Paint](<#paint>) property. Optional [color](<https://maplibre.org/maplibre-style-spec/types/index.md#color>). Defaults to `"#000000"`. Supports [feature-state](<https://maplibre.org/maplibre-style-spec/expressions/index.md#feature-state>) and [interpolate](<https://maplibre.org/maplibre-style-spec/expressions/index.md#interpolate>) expressions. [Transitionable](<https://maplibre.org/maplibre-style-spec/transition/index.md>).*

The fill color of the circle.

| SDK Support | MapLibre GL JS | MapLibre Native<br>Android | MapLibre Native<br>iOS |
| --- | --- | --- | --- |
| basic functionality | 0.10.0 | 2.0.1 | 2.0.0 |
| data-driven styling | 0.18.0 | 5.0.0 | 3.5.0 |
| [`global-state`](<https://maplibre.org/maplibre-style-spec/expressions/index.md#global-state>) expression | 5.6.0 | 13.7.1 | 7.0.0 |

### circle-blur

*[Paint](<#paint>) property. Optional [number](<https://maplibre.org/maplibre-style-spec/types/index.md#number>). Defaults to `0`. Supports [feature-state](<https://maplibre.org/maplibre-style-spec/expressions/index.md#feature-state>) and [interpolate](<https://maplibre.org/maplibre-style-spec/expressions/index.md#interpolate>) expressions. [Transitionable](<https://maplibre.org/maplibre-style-spec/transition/index.md>).*

Amount to blur the circle. 1 blurs the circle such that only the centerpoint is full opacity.

| SDK Support | MapLibre GL JS | MapLibre Native<br>Android | MapLibre Native<br>iOS |
| --- | --- | --- | --- |
| basic functionality | 0.10.0 | 2.0.1 | 2.0.0 |
| data-driven styling | 0.20.0 | 5.0.0 | 3.5.0 |
| [`global-state`](<https://maplibre.org/maplibre-style-spec/expressions/index.md#global-state>) expression | 5.6.0 | 13.7.1 | 7.0.0 |

### circle-opacity

*[Paint](<#paint>) property. Optional [number](<https://maplibre.org/maplibre-style-spec/types/index.md#number>) in range `[0, 1]`. Defaults to `1`. Supports [feature-state](<https://maplibre.org/maplibre-style-spec/expressions/index.md#feature-state>) and [interpolate](<https://maplibre.org/maplibre-style-spec/expressions/index.md#interpolate>) expressions. [Transitionable](<https://maplibre.org/maplibre-style-spec/transition/index.md>).*

The opacity at which the circle will be drawn.

| SDK Support | MapLibre GL JS | MapLibre Native<br>Android | MapLibre Native<br>iOS |
| --- | --- | --- | --- |
| basic functionality | 0.10.0 | 2.0.1 | 2.0.0 |
| data-driven styling | 0.20.0 | 5.0.0 | 3.5.0 |
| [`global-state`](<https://maplibre.org/maplibre-style-spec/expressions/index.md#global-state>) expression | 5.6.0 | 13.7.1 | 7.0.0 |

### circle-translate

*[Paint](<#paint>) property. Optional [array](<https://maplibre.org/maplibre-style-spec/types/index.md#array>). Units in pixels. Defaults to `[0,0]`. Supports [interpolate](<https://maplibre.org/maplibre-style-spec/expressions/index.md#interpolate>) expressions. [Transitionable](<https://maplibre.org/maplibre-style-spec/transition/index.md>).*

The geometry's offset. Values are `[x, y]` where negatives indicate left and up, respectively.

| SDK Support | MapLibre GL JS | MapLibre Native<br>Android | MapLibre Native<br>iOS |
| --- | --- | --- | --- |
| basic functionality | 0.10.0 | 2.0.1 | 2.0.0 |
| [`global-state`](<https://maplibre.org/maplibre-style-spec/expressions/index.md#global-state>) expression | 5.6.0 | 13.7.1 | 7.0.0 |

### circle-translate-anchor

*[Paint](<#paint>) property. Optional [enum](<https://maplibre.org/maplibre-style-spec/types/index.md#enum>). Possible values: `map`, `viewport`. Defaults to `"map"`. Requires [`circle-translate`](<#circle-translate>).*

Controls the frame of reference for [`circle-translate`](<https://maplibre.org/maplibre-style-spec/layers/index.md#circle-translate>).

- `map`: The circle is translated relative to the map.
- `viewport`: The circle is translated relative to the viewport.

| SDK Support | MapLibre GL JS | MapLibre Native<br>Android | MapLibre Native<br>iOS |
| --- | --- | --- | --- |
| basic functionality | 0.10.0 | 2.0.1 | 2.0.0 |
| [`global-state`](<https://maplibre.org/maplibre-style-spec/expressions/index.md#global-state>) expression | 5.6.0 | 13.7.1 | 7.0.0 |

### circle-pitch-scale

*[Paint](<#paint>) property. Optional [enum](<https://maplibre.org/maplibre-style-spec/types/index.md#enum>). Possible values: `map`, `viewport`. Defaults to `"map"`.*

Controls the scaling behavior of the circle when the map is pitched.

- `map`: Circles are scaled according to their apparent distance to the camera.
- `viewport`: Circles are not scaled.

| SDK Support | MapLibre GL JS | MapLibre Native<br>Android | MapLibre Native<br>iOS |
| --- | --- | --- | --- |
| basic functionality | 0.21.0 | 4.2.0 | 3.4.0 |
| [`global-state`](<https://maplibre.org/maplibre-style-spec/expressions/index.md#global-state>) expression | 5.6.0 | 13.7.1 | 7.0.0 |

### circle-pitch-alignment

*[Paint](<#paint>) property. Optional [enum](<https://maplibre.org/maplibre-style-spec/types/index.md#enum>). Possible values: `map`, `viewport`. Defaults to `"viewport"`.*

Orientation of circle when map is pitched.

- `map`: The circle is aligned to the plane of the map.
- `viewport`: The circle is aligned to the plane of the viewport.

| SDK Support | MapLibre GL JS | MapLibre Native<br>Android | MapLibre Native<br>iOS |
| --- | --- | --- | --- |
| basic functionality | 0.39.0 | 5.2.0 | 3.7.0 |
| [`global-state`](<https://maplibre.org/maplibre-style-spec/expressions/index.md#global-state>) expression | 5.6.0 | 13.7.1 | 7.0.0 |

### circle-stroke-width

*[Paint](<#paint>) property. Optional [number](<https://maplibre.org/maplibre-style-spec/types/index.md#number>) in range `[0, ∞)`. Units in pixels. Defaults to `0`. Supports [feature-state](<https://maplibre.org/maplibre-style-spec/expressions/index.md#feature-state>) and [interpolate](<https://maplibre.org/maplibre-style-spec/expressions/index.md#interpolate>) expressions. [Transitionable](<https://maplibre.org/maplibre-style-spec/transition/index.md>).*

The width of the circle's stroke. Strokes are placed outside of the [`circle-radius`](<https://maplibre.org/maplibre-style-spec/layers/index.md#circle-radius>).

| SDK Support | MapLibre GL JS | MapLibre Native<br>Android | MapLibre Native<br>iOS |
| --- | --- | --- | --- |
| basic functionality | 0.29.0 | 5.0.0 | 3.5.0 |
| data-driven styling | 0.29.0 | 5.0.0 | 3.5.0 |
| [`global-state`](<https://maplibre.org/maplibre-style-spec/expressions/index.md#global-state>) expression | 5.6.0 | 13.7.1 | 7.0.0 |

### circle-stroke-color

*[Paint](<#paint>) property. Optional [color](<https://maplibre.org/maplibre-style-spec/types/index.md#color>). Defaults to `"#000000"`. Supports [feature-state](<https://maplibre.org/maplibre-style-spec/expressions/index.md#feature-state>) and [interpolate](<https://maplibre.org/maplibre-style-spec/expressions/index.md#interpolate>) expressions. [Transitionable](<https://maplibre.org/maplibre-style-spec/transition/index.md>).*

The stroke color of the circle.

| SDK Support | MapLibre GL JS | MapLibre Native<br>Android | MapLibre Native<br>iOS |
| --- | --- | --- | --- |
| basic functionality | 0.29.0 | 5.0.0 | 3.5.0 |
| data-driven styling | 0.29.0 | 5.0.0 | 3.5.0 |
| [`global-state`](<https://maplibre.org/maplibre-style-spec/expressions/index.md#global-state>) expression | 5.6.0 | 13.7.1 | 7.0.0 |

### circle-stroke-opacity

*[Paint](<#paint>) property. Optional [number](<https://maplibre.org/maplibre-style-spec/types/index.md#number>) in range `[0, 1]`. Defaults to `1`. Supports [feature-state](<https://maplibre.org/maplibre-style-spec/expressions/index.md#feature-state>) and [interpolate](<https://maplibre.org/maplibre-style-spec/expressions/index.md#interpolate>) expressions. [Transitionable](<https://maplibre.org/maplibre-style-spec/transition/index.md>).*

The opacity of the circle's stroke.

| SDK Support | MapLibre GL JS | MapLibre Native<br>Android | MapLibre Native<br>iOS |
| --- | --- | --- | --- |
| basic functionality | 0.29.0 | 5.0.0 | 3.5.0 |
| data-driven styling | 0.29.0 | 5.0.0 | 3.5.0 |
| [`global-state`](<https://maplibre.org/maplibre-style-spec/expressions/index.md#global-state>) expression | 5.6.0 | 13.7.1 | 7.0.0 |

## Heatmap

### visibility

*[Layout](<#layout>) property. Optional [enum](<https://maplibre.org/maplibre-style-spec/types/index.md#enum>). Possible values: `visible`, `none`. Defaults to `"visible"`.*

Whether this layer is displayed.

- `visible`: The layer is shown.
- `none`: The layer is not shown.

| SDK Support | MapLibre GL JS | MapLibre Native<br>Android | MapLibre Native<br>iOS |
| --- | --- | --- | --- |
| basic functionality | 0.41.0 | 6.0.0 | 4.0.0 |
| [`global-state`](<https://maplibre.org/maplibre-style-spec/expressions/index.md#global-state>) expression | 5.16.0 | 13.7.1 | 7.0.0 |

### heatmap-radius

*[Paint](<#paint>) property. Optional [number](<https://maplibre.org/maplibre-style-spec/types/index.md#number>) in range `[1, ∞)`. Units in pixels. Defaults to `30`. Supports [feature-state](<https://maplibre.org/maplibre-style-spec/expressions/index.md#feature-state>) and [interpolate](<https://maplibre.org/maplibre-style-spec/expressions/index.md#interpolate>) expressions. [Transitionable](<https://maplibre.org/maplibre-style-spec/transition/index.md>).*

Radius of influence of one heatmap point in pixels. Increasing the value makes the heatmap smoother, but less detailed.

| SDK Support | MapLibre GL JS | MapLibre Native<br>Android | MapLibre Native<br>iOS |
| --- | --- | --- | --- |
| basic functionality | 0.41.0 | 6.0.0 | 4.0.0 |
| data-driven styling | 0.43.0 | 6.0.0 | 4.0.0 |
| [`global-state`](<https://maplibre.org/maplibre-style-spec/expressions/index.md#global-state>) expression | 5.6.0 | 13.7.1 | 7.0.0 |

### heatmap-weight

*[Paint](<#paint>) property. Optional [number](<https://maplibre.org/maplibre-style-spec/types/index.md#number>) in range `[0, ∞)`. Defaults to `1`. Supports [feature-state](<https://maplibre.org/maplibre-style-spec/expressions/index.md#feature-state>) and [interpolate](<https://maplibre.org/maplibre-style-spec/expressions/index.md#interpolate>) expressions.*

A measure of how much an individual point contributes to the heatmap. A value of 10 would be equivalent to having 10 points of weight 1 in the same spot. Especially useful when combined with clustering.

| SDK Support | MapLibre GL JS | MapLibre Native<br>Android | MapLibre Native<br>iOS |
| --- | --- | --- | --- |
| basic functionality | 0.41.0 | 6.0.0 | 4.0.0 |
| data-driven styling | 0.41.0 | 6.0.0 | 4.0.0 |
| [`global-state`](<https://maplibre.org/maplibre-style-spec/expressions/index.md#global-state>) expression | 5.6.0 | 13.7.1 | 7.0.0 |

### heatmap-intensity

*[Paint](<#paint>) property. Optional [number](<https://maplibre.org/maplibre-style-spec/types/index.md#number>) in range `[0, ∞)`. Defaults to `1`. Supports [interpolate](<https://maplibre.org/maplibre-style-spec/expressions/index.md#interpolate>) expressions. [Transitionable](<https://maplibre.org/maplibre-style-spec/transition/index.md>).*

Similar to [`heatmap-weight`](<https://maplibre.org/maplibre-style-spec/layers/index.md#heatmap-weight>) but controls the intensity of the heatmap globally. Primarily used for adjusting the heatmap based on zoom level.

| SDK Support | MapLibre GL JS | MapLibre Native<br>Android | MapLibre Native<br>iOS |
| --- | --- | --- | --- |
| basic functionality | 0.41.0 | 6.0.0 | 4.0.0 |
| [`global-state`](<https://maplibre.org/maplibre-style-spec/expressions/index.md#global-state>) expression | 5.6.0 | 13.7.1 | 7.0.0 |

### heatmap-color

*[Paint](<#paint>) property. Optional [color](<https://maplibre.org/maplibre-style-spec/types/index.md#color>). Defaults to `["interpolate",["linear"],["heatmap-density"],0,"rgba(0, 0, 255, 0)",0.1,"royalblue",0.3,"cyan",0.5,"lime",0.7,"yellow",1,"red"]`. Supports [interpolate](<https://maplibre.org/maplibre-style-spec/expressions/index.md#interpolate>) expressions.*

Defines the color of each pixel based on its density value in a heatmap. Should be an expression that uses `["heatmap-density"]` as input.

| SDK Support | MapLibre GL JS | MapLibre Native<br>Android | MapLibre Native<br>iOS |
| --- | --- | --- | --- |
| basic functionality | 0.41.0 | 6.0.0 | 4.0.0 |
| data-driven styling | Not supported yet | Not supported yet | Not supported yet |
| [`global-state`](<https://maplibre.org/maplibre-style-spec/expressions/index.md#global-state>) expression | 5.6.0 | 13.7.1 | 7.0.0 |

### heatmap-opacity

*[Paint](<#paint>) property. Optional [number](<https://maplibre.org/maplibre-style-spec/types/index.md#number>) in range `[0, 1]`. Defaults to `1`. Supports [interpolate](<https://maplibre.org/maplibre-style-spec/expressions/index.md#interpolate>) expressions. [Transitionable](<https://maplibre.org/maplibre-style-spec/transition/index.md>).*

The global opacity at which the heatmap layer will be drawn.

| SDK Support | MapLibre GL JS | MapLibre Native<br>Android | MapLibre Native<br>iOS |
| --- | --- | --- | --- |
| basic functionality | 0.41.0 | 6.0.0 | 4.0.0 |
| [`global-state`](<https://maplibre.org/maplibre-style-spec/expressions/index.md#global-state>) expression | 5.6.0 | 13.7.1 | 7.0.0 |

## Fill-extrusion

### visibility

*[Layout](<#layout>) property. Optional [enum](<https://maplibre.org/maplibre-style-spec/types/index.md#enum>). Possible values: `visible`, `none`. Defaults to `"visible"`.*

Whether this layer is displayed.

- `visible`: The layer is shown.
- `none`: The layer is not shown.

| SDK Support | MapLibre GL JS | MapLibre Native<br>Android | MapLibre Native<br>iOS |
| --- | --- | --- | --- |
| basic functionality | 0.27.0 | 5.1.0 | 3.6.0 |
| [`global-state`](<https://maplibre.org/maplibre-style-spec/expressions/index.md#global-state>) expression | 5.16.0 | 13.7.1 | 7.0.0 |

### fill-extrusion-rounded-corner-distance

*[Layout](<#layout>) property. Optional [number](<https://maplibre.org/maplibre-style-spec/types/index.md#number>) in range `[0, ∞)`. Units in meters. Defaults to `0`.*

The distance from each fill extrusion corner, measured along the adjacent edges, that is replaced by a rounded corner. A value of `0` disables rounded corners.

| SDK Support | MapLibre GL JS | MapLibre Native<br>Android | MapLibre Native<br>iOS |
| --- | --- | --- | --- |
| basic functionality | 6.2.0 | 13.4.0 | 6.28.0 |

### fill-extrusion-opacity

*[Paint](<#paint>) property. Optional [number](<https://maplibre.org/maplibre-style-spec/types/index.md#number>) in range `[0, 1]`. Defaults to `1`. Supports [feature-state](<https://maplibre.org/maplibre-style-spec/expressions/index.md#feature-state>) and [interpolate](<https://maplibre.org/maplibre-style-spec/expressions/index.md#interpolate>) expressions. [Transitionable](<https://maplibre.org/maplibre-style-spec/transition/index.md>).*

The opacity of each extrusion. Extrusions at `1` show through the others. Where several extrusions below `1` overlap on screen, only the surface closest to the camera is drawn, so they don't show through each other. Use [`fill-extrusion-layer-opacity`](<https://maplibre.org/maplibre-style-spec/layers/index.md#fill-extrusion-layer-opacity>) to fade the layer as a whole.

![fill-extrusion-opacity vs. fill-extrusion-layer-opacity](<https://maplibre.org/maplibre-style-spec/assets/fill-extrusion-opacity.svg>)

| SDK Support | MapLibre GL JS | MapLibre Native<br>Android | MapLibre Native<br>iOS |
| --- | --- | --- | --- |
| basic functionality | 0.27.0 | 5.1.0 | 3.6.0 |
| [`global-state`](<https://maplibre.org/maplibre-style-spec/expressions/index.md#global-state>) expression | 5.6.0 | 13.7.1 | 7.0.0 |
| data-driven styling | ❌ ([\#4492](<https://github.com/maplibre/maplibre-gl-js/issues/4492>)) | ❌ ([\#5047](<https://github.com/maplibre/maplibre-native/issues/5047>)) | ❌ ([\#5047](<https://github.com/maplibre/maplibre-native/issues/5047>)) |

### fill-extrusion-layer-opacity

*[Paint](<#paint>) property. Optional [number](<https://maplibre.org/maplibre-style-spec/types/index.md#number>) in range `[0, 1]`. Defaults to `1`. Supports [interpolate](<https://maplibre.org/maplibre-style-spec/expressions/index.md#interpolate>) expressions. [Transitionable](<https://maplibre.org/maplibre-style-spec/transition/index.md>).*

Opacity applied to the layer as a whole, multiplied with [`fill-extrusion-opacity`](<https://maplibre.org/maplibre-style-spec/layers/index.md#fill-extrusion-opacity>). The extrusions at a `fill-extrusion-opacity` of `1` appear as a single surface at the given opacity and still show through the others. This property affects only the layer it is set on.

![fill-extrusion-opacity vs. fill-extrusion-layer-opacity](<https://maplibre.org/maplibre-style-spec/assets/fill-extrusion-opacity.svg>)

| SDK Support | MapLibre GL JS | MapLibre Native<br>Android | MapLibre Native<br>iOS |
| --- | --- | --- | --- |
| basic functionality | ❌ ([\#4492](<https://github.com/maplibre/maplibre-gl-js/issues/4492>)) | ❌ ([\#5047](<https://github.com/maplibre/maplibre-native/issues/5047>)) | ❌ ([\#5047](<https://github.com/maplibre/maplibre-native/issues/5047>)) |
| [`global-state`](<https://maplibre.org/maplibre-style-spec/expressions/index.md#global-state>) expression | ❌ ([\#4492](<https://github.com/maplibre/maplibre-gl-js/issues/4492>)) | ❌ ([\#5047](<https://github.com/maplibre/maplibre-native/issues/5047>)) | ❌ ([\#5047](<https://github.com/maplibre/maplibre-native/issues/5047>)) |

### fill-extrusion-color

*[Paint](<#paint>) property. Optional [color](<https://maplibre.org/maplibre-style-spec/types/index.md#color>). Defaults to `"#000000"`. Disabled by [`fill-extrusion-pattern`](<#fill-extrusion-pattern>). Supports [feature-state](<https://maplibre.org/maplibre-style-spec/expressions/index.md#feature-state>) and [interpolate](<https://maplibre.org/maplibre-style-spec/expressions/index.md#interpolate>) expressions. [Transitionable](<https://maplibre.org/maplibre-style-spec/transition/index.md>).*

The base color of the extruded fill. The extrusion's surfaces will be shaded differently based on this color in combination with the root `light` settings. If this color is specified as `rgba` with an alpha component, the alpha component will be ignored; use [`fill-extrusion-opacity`](<https://maplibre.org/maplibre-style-spec/layers/index.md#fill-extrusion-opacity>) to set the opacity.

| SDK Support | MapLibre GL JS | MapLibre Native<br>Android | MapLibre Native<br>iOS |
| --- | --- | --- | --- |
| basic functionality | 0.27.0 | 5.1.0 | 3.6.0 |
| data-driven styling | 0.27.0 | 5.1.0 | 3.6.0 |
| [`global-state`](<https://maplibre.org/maplibre-style-spec/expressions/index.md#global-state>) expression | 5.6.0 | 13.7.1 | 7.0.0 |
| [`elevation`](<https://maplibre.org/maplibre-style-spec/expressions/index.md#elevation>) expression | ❌ ([\#8799](<https://github.com/maplibre/maplibre-gl-js/issues/8799>)) | ❌ ([\#4787](<https://github.com/maplibre/maplibre-native/issues/4787>)) | ❌ ([\#4787](<https://github.com/maplibre/maplibre-native/issues/4787>)) |

### fill-extrusion-translate

*[Paint](<#paint>) property. Optional [array](<https://maplibre.org/maplibre-style-spec/types/index.md#array>). Units in pixels. Defaults to `[0,0]`. Supports [interpolate](<https://maplibre.org/maplibre-style-spec/expressions/index.md#interpolate>) expressions. [Transitionable](<https://maplibre.org/maplibre-style-spec/transition/index.md>).*

The geometry's offset. Values are `[x, y]` where negatives indicate left and up (on the flat plane), respectively.

| SDK Support | MapLibre GL JS | MapLibre Native<br>Android | MapLibre Native<br>iOS |
| --- | --- | --- | --- |
| basic functionality | 0.27.0 | 5.1.0 | 3.6.0 |
| [`global-state`](<https://maplibre.org/maplibre-style-spec/expressions/index.md#global-state>) expression | 5.6.0 | 13.7.1 | 7.0.0 |

### fill-extrusion-translate-anchor

*[Paint](<#paint>) property. Optional [enum](<https://maplibre.org/maplibre-style-spec/types/index.md#enum>). Possible values: `map`, `viewport`. Defaults to `"map"`. Requires [`fill-extrusion-translate`](<#fill-extrusion-translate>).*

Controls the frame of reference for [`fill-extrusion-translate`](<https://maplibre.org/maplibre-style-spec/layers/index.md#fill-extrusion-translate>).

- `map`: The fill extrusion is translated relative to the map.
- `viewport`: The fill extrusion is translated relative to the viewport.

| SDK Support | MapLibre GL JS | MapLibre Native<br>Android | MapLibre Native<br>iOS |
| --- | --- | --- | --- |
| basic functionality | 0.27.0 | 5.1.0 | 3.6.0 |
| [`global-state`](<https://maplibre.org/maplibre-style-spec/expressions/index.md#global-state>) expression | 5.6.0 | 13.7.1 | 7.0.0 |

### fill-extrusion-pattern

*[Paint](<#paint>) property. Optional [resolvedImage](<https://maplibre.org/maplibre-style-spec/types/index.md#resolvedimage>). [Transitionable](<https://maplibre.org/maplibre-style-spec/transition/index.md>).*

Name of image in sprite to use for drawing images on extruded fills. For seamless patterns, image width and height must be a factor of two (2, 4, 8, ..., 512). Note that zoom-dependent expressions will be evaluated only at integer zoom levels.

| SDK Support | MapLibre GL JS | MapLibre Native<br>Android | MapLibre Native<br>iOS |
| --- | --- | --- | --- |
| basic functionality | 0.27.0 | 5.1.0 | 3.6.0 |
| data-driven styling | 0.49.0 | 6.5.0 | 4.4.0 |
| [`global-state`](<https://maplibre.org/maplibre-style-spec/expressions/index.md#global-state>) expression | 5.6.0 | 13.7.1 | 7.0.0 |

### fill-extrusion-height

*[Paint](<#paint>) property. Optional [number](<https://maplibre.org/maplibre-style-spec/types/index.md#number>). Units in meters. Defaults to `0`. Supports [feature-state](<https://maplibre.org/maplibre-style-spec/expressions/index.md#feature-state>) and [interpolate](<https://maplibre.org/maplibre-style-spec/expressions/index.md#interpolate>) expressions. [Transitionable](<https://maplibre.org/maplibre-style-spec/transition/index.md>).*

The height with which to extrude this layer. Negative values extrude below ground level, so a floor that is entirely underground can be expressed.

| SDK Support | MapLibre GL JS | MapLibre Native<br>Android | MapLibre Native<br>iOS |
| --- | --- | --- | --- |
| basic functionality | 0.27.0 | 5.1.0 | 3.6.0 |
| data-driven styling | 0.27.0 | 5.1.0 | 3.6.0 |
| [`global-state`](<https://maplibre.org/maplibre-style-spec/expressions/index.md#global-state>) expression | 5.6.0 | 13.7.1 | 7.0.0 |
| negative values | ❌ ([\#8051](<https://github.com/maplibre/maplibre-gl-js/issues/8051>)) | ❌ ([\#4455](<https://github.com/maplibre/maplibre-native/issues/4455>)) | ❌ ([\#4455](<https://github.com/maplibre/maplibre-native/issues/4455>)) |

### fill-extrusion-base

*[Paint](<#paint>) property. Optional [number](<https://maplibre.org/maplibre-style-spec/types/index.md#number>). Units in meters. Defaults to `0`. Requires [`fill-extrusion-height`](<#fill-extrusion-height>). Supports [feature-state](<https://maplibre.org/maplibre-style-spec/expressions/index.md#feature-state>) and [interpolate](<https://maplibre.org/maplibre-style-spec/expressions/index.md#interpolate>) expressions. [Transitionable](<https://maplibre.org/maplibre-style-spec/transition/index.md>).*

The height with which to extrude the base of this layer. Must be less than or equal to [`fill-extrusion-height`](<https://maplibre.org/maplibre-style-spec/layers/index.md#fill-extrusion-height>). Negative values extrude below ground level, e.g. underground floors.

| SDK Support | MapLibre GL JS | MapLibre Native<br>Android | MapLibre Native<br>iOS |
| --- | --- | --- | --- |
| basic functionality | 0.27.0 | 5.1.0 | 3.6.0 |
| data-driven styling | 0.27.0 | 5.1.0 | 3.6.0 |
| [`global-state`](<https://maplibre.org/maplibre-style-spec/expressions/index.md#global-state>) expression | 5.6.0 | 13.7.1 | 7.0.0 |
| negative values | ❌ ([\#8051](<https://github.com/maplibre/maplibre-gl-js/issues/8051>)) | ❌ ([\#4455](<https://github.com/maplibre/maplibre-native/issues/4455>)) | ❌ ([\#4455](<https://github.com/maplibre/maplibre-native/issues/4455>)) |

### fill-extrusion-vertical-gradient

*[Paint](<#paint>) property. Optional [boolean](<https://maplibre.org/maplibre-style-spec/types/index.md#boolean>). Defaults to `true`.*

Whether to apply a vertical gradient to the sides of a fill-extrusion layer. If true, sides will be shaded slightly darker farther down.

| SDK Support | MapLibre GL JS | MapLibre Native<br>Android | MapLibre Native<br>iOS |
| --- | --- | --- | --- |
| basic functionality | 0.50.0 | 7.0.0 | 4.7.0 |
| [`global-state`](<https://maplibre.org/maplibre-style-spec/expressions/index.md#global-state>) expression | 5.6.0 | 13.7.1 | 7.0.0 |

## Line

### line-cap

*[Layout](<#layout>) property. Optional [enum](<https://maplibre.org/maplibre-style-spec/types/index.md#enum>). Possible values: `butt`, `round`, `square`. Defaults to `"butt"`.*

The display of line endings.

- `butt`: A cap with a squared-off end which is drawn to the exact endpoint of the line.
- `round`: A cap with a rounded end which is drawn beyond the endpoint of the line at a radius of one-half of the line's width and centered on the endpoint of the line.
- `square`: A cap with a squared-off end which is drawn beyond the endpoint of the line at a distance of one-half of the line's width.

| SDK Support | MapLibre GL JS | MapLibre Native<br>Android | MapLibre Native<br>iOS |
| --- | --- | --- | --- |
| basic functionality | 0.10.0 | 2.0.1 | 2.0.0 |
| data-driven styling | 5.22.0 | ❌ ([\#4194](<https://github.com/maplibre/maplibre-native/issues/4194>)) | ❌ ([\#4194](<https://github.com/maplibre/maplibre-native/issues/4194>)) |
| [`global-state`](<https://maplibre.org/maplibre-style-spec/expressions/index.md#global-state>) expression | 5.7.0 | 13.7.1 | 7.0.0 |

### line-join

*[Layout](<#layout>) property. Optional [enum](<https://maplibre.org/maplibre-style-spec/types/index.md#enum>). Possible values: `bevel`, `round`, `miter`. Defaults to `"miter"`.*

The display of lines when joining.

- `bevel`: A join with a squared-off end which is drawn beyond the endpoint of the line at a distance of one-half of the line's width.
- `round`: A join with a rounded end which is drawn beyond the endpoint of the line at a radius of one-half of the line's width and centered on the endpoint of the line.
- `miter`: A join with a sharp, angled corner which is drawn with the outer sides beyond the endpoint of the path until they meet.

| SDK Support | MapLibre GL JS | MapLibre Native<br>Android | MapLibre Native<br>iOS |
| --- | --- | --- | --- |
| basic functionality | 0.10.0 | 2.0.1 | 2.0.0 |
| data-driven styling | 0.40.0 | 5.2.0 | 3.7.0 |
| [`global-state`](<https://maplibre.org/maplibre-style-spec/expressions/index.md#global-state>) expression | 5.7.0 | 13.7.1 | 7.0.0 |

### line-miter-limit

*[Layout](<#layout>) property. Optional [number](<https://maplibre.org/maplibre-style-spec/types/index.md#number>). Defaults to `2`. Requires `line-join` to be `miter`. Supports [interpolate](<https://maplibre.org/maplibre-style-spec/expressions/index.md#interpolate>) expressions.*

Used to automatically convert miter joins to bevel joins for sharp angles.

| SDK Support | MapLibre GL JS | MapLibre Native<br>Android | MapLibre Native<br>iOS |
| --- | --- | --- | --- |
| basic functionality | 0.10.0 | 2.0.1 | 2.0.0 |
| data-driven styling | 5.22.0 | ❌ ([\#4194](<https://github.com/maplibre/maplibre-native/issues/4194>)) | ❌ ([\#4194](<https://github.com/maplibre/maplibre-native/issues/4194>)) |
| [`global-state`](<https://maplibre.org/maplibre-style-spec/expressions/index.md#global-state>) expression | 5.7.0 | 13.7.1 | 7.0.0 |

### line-round-limit

*[Layout](<#layout>) property. Optional [number](<https://maplibre.org/maplibre-style-spec/types/index.md#number>). Defaults to `1.05`. Requires `line-join` to be `round`. Supports [interpolate](<https://maplibre.org/maplibre-style-spec/expressions/index.md#interpolate>) expressions.*

Used to automatically convert round joins to miter joins for shallow angles.

| SDK Support | MapLibre GL JS | MapLibre Native<br>Android | MapLibre Native<br>iOS |
| --- | --- | --- | --- |
| basic functionality | 0.10.0 | 2.0.1 | 2.0.0 |
| data-driven styling | 5.22.0 | ❌ ([\#4194](<https://github.com/maplibre/maplibre-native/issues/4194>)) | ❌ ([\#4194](<https://github.com/maplibre/maplibre-native/issues/4194>)) |
| [`global-state`](<https://maplibre.org/maplibre-style-spec/expressions/index.md#global-state>) expression | 5.7.0 | 13.7.1 | 7.0.0 |

### line-sort-key

*[Layout](<#layout>) property. Optional [number](<https://maplibre.org/maplibre-style-spec/types/index.md#number>).*

Sorts features in ascending order based on this value. Features with a higher sort key will appear above features with a lower sort key.

| SDK Support | MapLibre GL JS | MapLibre Native<br>Android | MapLibre Native<br>iOS |
| --- | --- | --- | --- |
| basic functionality | 1.2.0 | 9.1.0 | 5.8.0 |
| data-driven styling | 1.2.0 | 9.1.0 | 5.8.0 |
| [`global-state`](<https://maplibre.org/maplibre-style-spec/expressions/index.md#global-state>) expression | 5.7.0 | 13.7.1 | 7.0.0 |

### visibility

*[Layout](<#layout>) property. Optional [enum](<https://maplibre.org/maplibre-style-spec/types/index.md#enum>). Possible values: `visible`, `none`. Defaults to `"visible"`.*

Whether this layer is displayed.

- `visible`: The layer is shown.
- `none`: The layer is not shown.

| SDK Support | MapLibre GL JS | MapLibre Native<br>Android | MapLibre Native<br>iOS |
| --- | --- | --- | --- |
| basic functionality | 0.10.0 | 2.0.1 | 2.0.0 |
| [`global-state`](<https://maplibre.org/maplibre-style-spec/expressions/index.md#global-state>) expression | 5.16.0 | 13.7.1 | 7.0.0 |

### line-opacity

*[Paint](<#paint>) property. Optional [number](<https://maplibre.org/maplibre-style-spec/types/index.md#number>) in range `[0, 1]`. Defaults to `1`. Supports [feature-state](<https://maplibre.org/maplibre-style-spec/expressions/index.md#feature-state>) and [interpolate](<https://maplibre.org/maplibre-style-spec/expressions/index.md#interpolate>) expressions. [Transitionable](<https://maplibre.org/maplibre-style-spec/transition/index.md>).*

The opacity at which the line will be drawn.

| SDK Support | MapLibre GL JS | MapLibre Native<br>Android | MapLibre Native<br>iOS |
| --- | --- | --- | --- |
| basic functionality | 0.10.0 | 2.0.1 | 2.0.0 |
| data-driven styling | 0.29.0 | 5.0.0 | 3.5.0 |
| [`global-state`](<https://maplibre.org/maplibre-style-spec/expressions/index.md#global-state>) expression | 5.6.0 | 13.7.1 | 7.0.0 |

### line-layer-opacity

*[Paint](<#paint>) property. Optional [number](<https://maplibre.org/maplibre-style-spec/types/index.md#number>) in range `[0, 1]`. Defaults to `1`. Supports [interpolate](<https://maplibre.org/maplibre-style-spec/expressions/index.md#interpolate>) expressions. [Transitionable](<https://maplibre.org/maplibre-style-spec/transition/index.md>).*

Opacity applied to the layer as a whole. Unlike [`line-opacity`](<https://maplibre.org/maplibre-style-spec/layers/index.md#line-opacity>) and alpha values in [`line-color`](<https://maplibre.org/maplibre-style-spec/layers/index.md#line-color>), which are applied per feature and accumulate where lines overlap, `line-layer-opacity` is applied once so overlapping lines appear as a single surface at the given opacity. When both `line-opacity` and `line-layer-opacity` are set, the per-feature, overlap accumulation is preserved, then layer-opacity composites the result. This property affects only the layer it is set on and cannot be used to composite multiple layers together or control how this layer blends with layers above or below it.

![line-opacity vs. line-layer-opacity](<https://maplibre.org/maplibre-style-spec/assets/line-layer-opacity.svg>)

| SDK Support | MapLibre GL JS | MapLibre Native<br>Android | MapLibre Native<br>iOS |
| --- | --- | --- | --- |
| basic functionality | 6.0.0 | ❌ ([\#4298](<https://github.com/maplibre/maplibre-native/issues/4298>)) | ❌ ([\#4298](<https://github.com/maplibre/maplibre-native/issues/4298>)) |
| [`global-state`](<https://maplibre.org/maplibre-style-spec/expressions/index.md#global-state>) expression | 6.0.0 | ❌ ([\#4298](<https://github.com/maplibre/maplibre-native/issues/4298>)) | ❌ ([\#4298](<https://github.com/maplibre/maplibre-native/issues/4298>)) |

### line-layer-blend

*[Paint](<#paint>) property. Optional [enum](<https://maplibre.org/maplibre-style-spec/types/index.md#enum>). Possible values: `normal`, `multiply`, `color`, `luminosity`, `plus-lighter`, `screen`, `overlay`. Defaults to `"normal"`.*

Controls how the layer is composited with the content already rendered beneath it. Unlike per-feature opacity properties such as [`line-opacity`](<#line-opacity>), this property affects the final composited layer output and determines how it interacts with the existing map contents.

![line-layer-blend examples](<https://maplibre.org/maplibre-style-spec/assets/line-layer-blend.svg>)

- `normal`: [Normal](<https://www.w3.org/TR/compositing-1/#blendingnormal>) blending. The layer is drawn on top of existing content using standard alpha compositing.
- `multiply`: [Multiply](<https://www.w3.org/TR/compositing-1/#blendingmultiply>) blending. The layer color is multiplied with the colors underneath, producing darker results. Useful for textures, hillshades, and combining raster and vector content.
- `color`: [Color](<https://www.w3.org/TR/compositing-1/#blendingcolor>) blending. Creates a color with the hue and saturation of the layer and the luminosity of the content underneath, preserving its gray levels. Useful for tinting monochrome content such as a hillshade.
- `luminosity`: [Luminosity](<https://www.w3.org/TR/compositing-1/#blendingluminosity>) blending. Creates a color with the luminosity of the layer and the hue and saturation of the content underneath. The inverse of `color`.
- `plus-lighter`: [Plus-lighter](<https://www.w3.org/TR/compositing-1/#porterduffcompositingoperators_plus>) blending. Additive blending. The layer color is added to the colors underneath, producing brighter results. Useful for glow and heat accumulation effects.
- `screen`: [Screen](<https://www.w3.org/TR/compositing-1/#blendingscreen>) blending. The inverse of the colors is multiplied, producing lighter results. Useful for glow, heatmap, and light-based effects.
- `overlay`: [Overlay](<https://www.w3.org/TR/compositing-1/#blendingoverlay>) blending. Multiplies or screens colors depending on the colors underneath, preserving highlights and shadows while adding contrast.

| SDK Support | MapLibre GL JS | MapLibre Native<br>Android | MapLibre Native<br>iOS |
| --- | --- | --- | --- |
| basic functionality | ❌ ([\#48](<https://github.com/maplibre/maplibre-gl-js/issues/48>)) | ❌ ([\#2963](<https://github.com/maplibre/maplibre-native/issues/2963>)) | ❌ ([\#2963](<https://github.com/maplibre/maplibre-native/issues/2963>)) |

### line-color

*[Paint](<#paint>) property. Optional [color](<https://maplibre.org/maplibre-style-spec/types/index.md#color>). Defaults to `"#000000"`. Disabled by [`line-pattern`](<#line-pattern>). Supports [feature-state](<https://maplibre.org/maplibre-style-spec/expressions/index.md#feature-state>) and [interpolate](<https://maplibre.org/maplibre-style-spec/expressions/index.md#interpolate>) expressions. [Transitionable](<https://maplibre.org/maplibre-style-spec/transition/index.md>).*

The color with which the line will be drawn.

| SDK Support | MapLibre GL JS | MapLibre Native<br>Android | MapLibre Native<br>iOS |
| --- | --- | --- | --- |
| basic functionality | 0.10.0 | 2.0.1 | 2.0.0 |
| data-driven styling | 0.23.0 | 5.0.0 | 3.5.0 |
| [`global-state`](<https://maplibre.org/maplibre-style-spec/expressions/index.md#global-state>) expression | 5.6.0 | 13.7.1 | 7.0.0 |

### line-translate

*[Paint](<#paint>) property. Optional [array](<https://maplibre.org/maplibre-style-spec/types/index.md#array>). Units in pixels. Defaults to `[0,0]`. Supports [interpolate](<https://maplibre.org/maplibre-style-spec/expressions/index.md#interpolate>) expressions. [Transitionable](<https://maplibre.org/maplibre-style-spec/transition/index.md>).*

The geometry's offset. Values are `[x, y]` where negatives indicate left and up, respectively.

| SDK Support | MapLibre GL JS | MapLibre Native<br>Android | MapLibre Native<br>iOS |
| --- | --- | --- | --- |
| basic functionality | 0.10.0 | 2.0.1 | 2.0.0 |
| [`global-state`](<https://maplibre.org/maplibre-style-spec/expressions/index.md#global-state>) expression | 5.6.0 | 13.7.1 | 7.0.0 |

### line-translate-anchor

*[Paint](<#paint>) property. Optional [enum](<https://maplibre.org/maplibre-style-spec/types/index.md#enum>). Possible values: `map`, `viewport`. Defaults to `"map"`. Requires [`line-translate`](<#line-translate>).*

Controls the frame of reference for [`line-translate`](<https://maplibre.org/maplibre-style-spec/layers/index.md#line-translate>).

- `map`: The line is translated relative to the map.
- `viewport`: The line is translated relative to the viewport.

| SDK Support | MapLibre GL JS | MapLibre Native<br>Android | MapLibre Native<br>iOS |
| --- | --- | --- | --- |
| basic functionality | 0.10.0 | 2.0.1 | 2.0.0 |
| [`global-state`](<https://maplibre.org/maplibre-style-spec/expressions/index.md#global-state>) expression | 5.6.0 | 13.7.1 | 7.0.0 |

### line-width

*[Paint](<#paint>) property. Optional [number](<https://maplibre.org/maplibre-style-spec/types/index.md#number>) in range `[0, ∞)`. Units in pixels. Defaults to `1`. Supports [feature-state](<https://maplibre.org/maplibre-style-spec/expressions/index.md#feature-state>) and [interpolate](<https://maplibre.org/maplibre-style-spec/expressions/index.md#interpolate>) expressions. [Transitionable](<https://maplibre.org/maplibre-style-spec/transition/index.md>).*

Stroke thickness.

| SDK Support | MapLibre GL JS | MapLibre Native<br>Android | MapLibre Native<br>iOS |
| --- | --- | --- | --- |
| basic functionality | 0.10.0 | 2.0.1 | 2.0.0 |
| data-driven styling | 0.39.0 | 5.2.0 | 3.7.0 |
| [`global-state`](<https://maplibre.org/maplibre-style-spec/expressions/index.md#global-state>) expression | 5.6.0 | 13.7.1 | 7.0.0 |

### line-gap-width

*[Paint](<#paint>) property. Optional [number](<https://maplibre.org/maplibre-style-spec/types/index.md#number>) in range `[0, ∞)`. Units in pixels. Defaults to `0`. Supports [feature-state](<https://maplibre.org/maplibre-style-spec/expressions/index.md#feature-state>) and [interpolate](<https://maplibre.org/maplibre-style-spec/expressions/index.md#interpolate>) expressions. [Transitionable](<https://maplibre.org/maplibre-style-spec/transition/index.md>).*

Draws a line casing outside of a line's actual path. Value indicates the width of the inner gap.

| SDK Support | MapLibre GL JS | MapLibre Native<br>Android | MapLibre Native<br>iOS |
| --- | --- | --- | --- |
| basic functionality | 0.10.0 | 2.0.1 | 2.0.0 |
| data-driven styling | 0.29.0 | 5.0.0 | 3.5.0 |
| [`global-state`](<https://maplibre.org/maplibre-style-spec/expressions/index.md#global-state>) expression | 5.6.0 | 13.7.1 | 7.0.0 |

### line-offset

*[Paint](<#paint>) property. Optional [number](<https://maplibre.org/maplibre-style-spec/types/index.md#number>). Units in pixels. Defaults to `0`. Supports [feature-state](<https://maplibre.org/maplibre-style-spec/expressions/index.md#feature-state>) and [interpolate](<https://maplibre.org/maplibre-style-spec/expressions/index.md#interpolate>) expressions. [Transitionable](<https://maplibre.org/maplibre-style-spec/transition/index.md>).*

The line's offset. For linear features, a positive value offsets the line to the right, relative to the direction of the line, and a negative value to the left. For polygon features, a positive value results in an inset, and a negative value results in an outset.

| SDK Support | MapLibre GL JS | MapLibre Native<br>Android | MapLibre Native<br>iOS |
| --- | --- | --- | --- |
| basic functionality | 0.12.1 | 3.0.0 | 3.1.0 |
| data-driven styling | 0.29.0 | 5.0.0 | 3.5.0 |
| [`global-state`](<https://maplibre.org/maplibre-style-spec/expressions/index.md#global-state>) expression | 5.6.0 | 13.7.1 | 7.0.0 |

### line-blur

*[Paint](<#paint>) property. Optional [number](<https://maplibre.org/maplibre-style-spec/types/index.md#number>) in range `[0, ∞)`. Units in pixels. Defaults to `0`. Supports [feature-state](<https://maplibre.org/maplibre-style-spec/expressions/index.md#feature-state>) and [interpolate](<https://maplibre.org/maplibre-style-spec/expressions/index.md#interpolate>) expressions. [Transitionable](<https://maplibre.org/maplibre-style-spec/transition/index.md>).*

Blur applied to the line, in pixels.

| SDK Support | MapLibre GL JS | MapLibre Native<br>Android | MapLibre Native<br>iOS |
| --- | --- | --- | --- |
| basic functionality | 0.10.0 | 2.0.1 | 2.0.0 |
| data-driven styling | 0.29.0 | 5.0.0 | 3.5.0 |
| [`global-state`](<https://maplibre.org/maplibre-style-spec/expressions/index.md#global-state>) expression | 5.6.0 | 13.7.1 | 7.0.0 |

### line-dasharray

*[Paint](<#paint>) property. Optional [array](<https://maplibre.org/maplibre-style-spec/types/index.md#array>) in range `[0, ∞)`. Units in line widths. Disabled by [`line-pattern`](<#line-pattern>). [Transitionable](<https://maplibre.org/maplibre-style-spec/transition/index.md>).*

Specifies the lengths of the alternating dashes and gaps that form the dash pattern. The lengths are later scaled by the line width. To convert a dash length to pixels, multiply the length by the current line width. GeoJSON sources with `lineMetrics: true` specified won't render dashed lines to the expected scale. Zoom-dependent expressions will be evaluated only at integer zoom levels. The only way to create an array value is using `["literal", [...]]`; arrays cannot be read from or derived from feature properties.

| SDK Support | MapLibre GL JS | MapLibre Native<br>Android | MapLibre Native<br>iOS |
| --- | --- | --- | --- |
| basic functionality | 0.10.0 | 2.0.1 | 2.0.0 |
| data-driven styling | 5.8.0 | ❌ ([\#744](<https://github.com/maplibre/maplibre-native/issues/744>)) | ❌ ([\#744](<https://github.com/maplibre/maplibre-native/issues/744>)) |
| [`global-state`](<https://maplibre.org/maplibre-style-spec/expressions/index.md#global-state>) expression | 5.6.0 | 13.7.1 | 7.0.0 |

### line-pattern

*[Paint](<#paint>) property. Optional [resolvedImage](<https://maplibre.org/maplibre-style-spec/types/index.md#resolvedimage>). [Transitionable](<https://maplibre.org/maplibre-style-spec/transition/index.md>).*

Name of image in sprite to use for drawing image lines. For seamless patterns, image width must be a factor of two (2, 4, 8, ..., 512). Note that zoom-dependent expressions will be evaluated only at integer zoom levels.

| SDK Support | MapLibre GL JS | MapLibre Native<br>Android | MapLibre Native<br>iOS |
| --- | --- | --- | --- |
| basic functionality | 0.10.0 | 2.0.1 | 2.0.0 |
| data-driven styling | 0.49.0 | 6.5.0 | 4.4.0 |
| [`global-state`](<https://maplibre.org/maplibre-style-spec/expressions/index.md#global-state>) expression | 5.6.0 | 13.7.1 | 7.0.0 |

### line-gradient

*[Paint](<#paint>) property. Optional [color](<https://maplibre.org/maplibre-style-spec/types/index.md#color>). Disabled by [`line-dasharray`](<#line-dasharray>). Disabled by [`line-pattern`](<#line-pattern>). Requires source to be [`geojson`](<https://maplibre.org/maplibre-style-spec/sources/index.md#geojson>). Supports [interpolate](<https://maplibre.org/maplibre-style-spec/expressions/index.md#interpolate>) expressions.*

Defines a gradient with which to color a line feature. Can only be used with GeoJSON sources that specify `"lineMetrics": true`.

| SDK Support | MapLibre GL JS | MapLibre Native<br>Android | MapLibre Native<br>iOS |
| --- | --- | --- | --- |
| basic functionality | 0.45.0 | 6.5.0 | 4.4.0 |
| data-driven styling | Not supported yet | Not supported yet | Not supported yet |
| [`global-state`](<https://maplibre.org/maplibre-style-spec/expressions/index.md#global-state>) expression | 5.6.0 | 13.7.1 | 7.0.0 |

## Symbol

### symbol-placement

*[Layout](<#layout>) property. Optional [enum](<https://maplibre.org/maplibre-style-spec/types/index.md#enum>). Possible values: `point`, `line`, `line-center`. Defaults to `"point"`.*

Label placement relative to its geometry.

- `point`: The label is placed at the point where the geometry is located.
- `line`: The label is placed along the line of the geometry. Can only be used on `LineString` and `Polygon` geometries.
- `line-center`: The label is placed at the center of the line of the geometry. Can only be used on `LineString` and `Polygon` geometries. Note that a single feature in a vector tile may contain multiple line geometries.

| SDK Support | MapLibre GL JS | MapLibre Native<br>Android | MapLibre Native<br>iOS |
| --- | --- | --- | --- |
| basic functionality | 0.10.0 | 2.0.1 | 2.0.0 |
| `line-center` value | 0.47.0 | 6.4.0 | 4.3.0 |
| [`global-state`](<https://maplibre.org/maplibre-style-spec/expressions/index.md#global-state>) expression | 5.7.0 | 13.7.1 | 7.0.0 |

### symbol-spacing

*[Layout](<#layout>) property. Optional [number](<https://maplibre.org/maplibre-style-spec/types/index.md#number>) in range `[1, ∞)`. Units in pixels. Defaults to `250`. Requires `symbol-placement` to be `line`. Supports [interpolate](<https://maplibre.org/maplibre-style-spec/expressions/index.md#interpolate>) expressions.*

Distance between two symbol anchors.

| SDK Support | MapLibre GL JS | MapLibre Native<br>Android | MapLibre Native<br>iOS |
| --- | --- | --- | --- |
| basic functionality | 0.10.0 | 2.0.1 | 2.0.0 |
| [`global-state`](<https://maplibre.org/maplibre-style-spec/expressions/index.md#global-state>) expression | 5.7.0 | 13.7.1 | 7.0.0 |

### symbol-avoid-edges

*[Layout](<#layout>) property. Optional [boolean](<https://maplibre.org/maplibre-style-spec/types/index.md#boolean>). Defaults to `false`.*

If true, the symbols will not cross tile edges to avoid mutual collisions. Recommended in layers that don't have enough padding in the vector tile to prevent collisions, or if it is a point symbol layer placed after a line symbol layer. When using a client that supports global collision detection, like MapLibre GL JS version 0.42.0 or greater, enabling this property is not needed to prevent clipped labels at tile boundaries.

| SDK Support | MapLibre GL JS | MapLibre Native<br>Android | MapLibre Native<br>iOS |
| --- | --- | --- | --- |
| basic functionality | 0.10.0 | 2.0.1 | 2.0.0 |
| [`global-state`](<https://maplibre.org/maplibre-style-spec/expressions/index.md#global-state>) expression | 5.7.0 | 13.7.1 | 7.0.0 |

### symbol-sort-key

*[Layout](<#layout>) property. Optional [number](<https://maplibre.org/maplibre-style-spec/types/index.md#number>).*

Sorts features in ascending order based on this value. Features with lower sort keys are drawn and placed first. When [`icon-allow-overlap`](<https://maplibre.org/maplibre-style-spec/layers/index.md#icon-allow-overlap>) or [`text-allow-overlap`](<https://maplibre.org/maplibre-style-spec/layers/index.md#text-allow-overlap>) is `false`, features with a lower sort key will have priority during placement. When `icon-allow-overlap` or `text-allow-overlap` is set to `true`, features with a higher sort key will overlap over features with a lower sort key.

| SDK Support | MapLibre GL JS | MapLibre Native<br>Android | MapLibre Native<br>iOS |
| --- | --- | --- | --- |
| basic functionality | 0.53.0 | 7.4.0 | 4.11.0 |
| data-driven styling | 0.53.0 | 7.4.0 | 4.11.0 |
| [`global-state`](<https://maplibre.org/maplibre-style-spec/expressions/index.md#global-state>) expression | 5.7.0 | 13.7.1 | 7.0.0 |

### symbol-z-order

*[Layout](<#layout>) property. Optional [enum](<https://maplibre.org/maplibre-style-spec/types/index.md#enum>). Possible values: `auto`, `viewport-y`, `source`. Defaults to `"auto"`.*

Determines whether overlapping symbols in the same layer are rendered in the order that they appear in the data source or by their y-position relative to the viewport. To control the order and prioritization of symbols otherwise, use [`symbol-sort-key`](<https://maplibre.org/maplibre-style-spec/layers/index.md#symbol-sort-key>).

- `auto`: Sorts symbols by [`symbol-sort-key`](<https://maplibre.org/maplibre-style-spec/layers/index.md#symbol-sort-key>) if set. Otherwise, sorts symbols by their y-position relative to the viewport if [`icon-allow-overlap`](<https://maplibre.org/maplibre-style-spec/layers/index.md#icon-allow-overlap>) or [`text-allow-overlap`](<https://maplibre.org/maplibre-style-spec/layers/index.md#text-allow-overlap>) is set to `true` or [`icon-ignore-placement`](<https://maplibre.org/maplibre-style-spec/layers/index.md#icon-ignore-placement>) or [`text-ignore-placement`](<https://maplibre.org/maplibre-style-spec/layers/index.md#text-ignore-placement>) is `false`.
- `viewport-y`: Sorts symbols by their y-position relative to the viewport if [`icon-allow-overlap`](<https://maplibre.org/maplibre-style-spec/layers/index.md#icon-allow-overlap>) or [`text-allow-overlap`](<https://maplibre.org/maplibre-style-spec/layers/index.md#text-allow-overlap>) is set to `true` or [`icon-ignore-placement`](<https://maplibre.org/maplibre-style-spec/layers/index.md#icon-ignore-placement>) or [`text-ignore-placement`](<https://maplibre.org/maplibre-style-spec/layers/index.md#text-ignore-placement>) is `false`.
- `source`: Sorts symbols by [`symbol-sort-key`](<https://maplibre.org/maplibre-style-spec/layers/index.md#symbol-sort-key>) if set. Otherwise, no sorting is applied; symbols are rendered in the same order as the source data.

| SDK Support | MapLibre GL JS | MapLibre Native<br>Android | MapLibre Native<br>iOS |
| --- | --- | --- | --- |
| basic functionality | 0.49.0 | 6.6.0 | 4.5.0 |
| [`global-state`](<https://maplibre.org/maplibre-style-spec/expressions/index.md#global-state>) expression | 5.7.0 | 13.7.1 | 7.0.0 |

### icon-allow-overlap

*[Layout](<#layout>) property. Optional [boolean](<https://maplibre.org/maplibre-style-spec/types/index.md#boolean>). Defaults to `false`. Requires [`icon-image`](<#icon-image>). Disabled by [`icon-overlap`](<#icon-overlap>).*

If true, the icon will be visible even if it collides with other previously drawn symbols.

| SDK Support | MapLibre GL JS | MapLibre Native<br>Android | MapLibre Native<br>iOS |
| --- | --- | --- | --- |
| basic functionality | 0.10.0 | 2.0.1 | 2.0.0 |
| [`global-state`](<https://maplibre.org/maplibre-style-spec/expressions/index.md#global-state>) expression | 5.7.0 | 13.7.1 | 7.0.0 |

### icon-overlap

*[Layout](<#layout>) property. Optional [enum](<https://maplibre.org/maplibre-style-spec/types/index.md#enum>). Possible values: `never`, `always`, `cooperative`. Requires [`icon-image`](<#icon-image>).*

Allows for control over whether to show an icon when it overlaps other symbols on the map. If `icon-overlap` is not set, [`icon-allow-overlap`](<https://maplibre.org/maplibre-style-spec/layers/index.md#icon-allow-overlap>) is used instead.

- `never`: The icon will be hidden if it collides with any other previously drawn symbol.
- `always`: The icon will be visible even if it collides with any other previously drawn symbol.
- `cooperative`: If the icon collides with another previously drawn symbol, the overlap mode for that symbol is checked. If the previous symbol was placed using `never` overlap mode, the new icon is hidden. If the previous symbol was placed using `always` or `cooperative` overlap mode, the new icon is visible.

| SDK Support | MapLibre GL JS | MapLibre Native<br>Android | MapLibre Native<br>iOS |
| --- | --- | --- | --- |
| basic functionality | 2.1.0 | ❌ ([\#251](<https://github.com/maplibre/maplibre-native/issues/251>)) | ❌ ([\#251](<https://github.com/maplibre/maplibre-native/issues/251>)) |
| [`global-state`](<https://maplibre.org/maplibre-style-spec/expressions/index.md#global-state>) expression | 5.7.0 | ❌ ([\#251](<https://github.com/maplibre/maplibre-native/issues/251>)) | ❌ ([\#251](<https://github.com/maplibre/maplibre-native/issues/251>)) |

### icon-ignore-placement

*[Layout](<#layout>) property. Optional [boolean](<https://maplibre.org/maplibre-style-spec/types/index.md#boolean>). Defaults to `false`. Requires [`icon-image`](<#icon-image>).*

If true, other symbols can be visible even if they collide with the icon.

| SDK Support | MapLibre GL JS | MapLibre Native<br>Android | MapLibre Native<br>iOS |
| --- | --- | --- | --- |
| basic functionality | 0.10.0 | 2.0.1 | 2.0.0 |
| [`global-state`](<https://maplibre.org/maplibre-style-spec/expressions/index.md#global-state>) expression | 5.7.0 | 13.7.1 | 7.0.0 |

### icon-optional

*[Layout](<#layout>) property. Optional [boolean](<https://maplibre.org/maplibre-style-spec/types/index.md#boolean>). Defaults to `false`. Requires [`icon-image`](<#icon-image>). Requires [`text-field`](<#text-field>).*

If true, text will display without their corresponding icons when the icon collides with other symbols and the text does not.

| SDK Support | MapLibre GL JS | MapLibre Native<br>Android | MapLibre Native<br>iOS |
| --- | --- | --- | --- |
| basic functionality | 0.10.0 | 2.0.1 | 2.0.0 |
| [`global-state`](<https://maplibre.org/maplibre-style-spec/expressions/index.md#global-state>) expression | 5.7.0 | 13.7.1 | 7.0.0 |

### icon-rotation-alignment

*[Layout](<#layout>) property. Optional [enum](<https://maplibre.org/maplibre-style-spec/types/index.md#enum>). Possible values: `map`, `viewport`, `auto`. Defaults to `"auto"`. Requires [`icon-image`](<#icon-image>).*

In combination with [`symbol-placement`](<https://maplibre.org/maplibre-style-spec/layers/index.md#symbol-placement>), determines the rotation behavior of icons.

- `map`: When [`symbol-placement`](<https://maplibre.org/maplibre-style-spec/layers/index.md#symbol-placement>) is set to `point`, aligns icons east-west. When `symbol-placement` is set to `line` or `line-center`, aligns icon x-axes with the line.
- `viewport`: Produces icons whose x-axes are aligned with the x-axis of the viewport, regardless of the value of [`symbol-placement`](<https://maplibre.org/maplibre-style-spec/layers/index.md#symbol-placement>).
- `auto`: When [`symbol-placement`](<https://maplibre.org/maplibre-style-spec/layers/index.md#symbol-placement>) is set to `point`, this is equivalent to `viewport`. When `symbol-placement` is set to `line` or `line-center`, this is equivalent to `map`.

| SDK Support | MapLibre GL JS | MapLibre Native<br>Android | MapLibre Native<br>iOS |
| --- | --- | --- | --- |
| basic functionality | 0.10.0 | 2.0.1 | 2.0.0 |
| data-driven styling | ❌ ([\#3461](<https://github.com/maplibre/maplibre-gl-js/issues/3461>)) | ❌ ([\#4517](<https://github.com/maplibre/maplibre-native/issues/4517>)) | ❌ ([\#4517](<https://github.com/maplibre/maplibre-native/issues/4517>)) |
| `auto` value | 0.25.0 | 4.2.0 | 3.4.0 |
| [`global-state`](<https://maplibre.org/maplibre-style-spec/expressions/index.md#global-state>) expression | 5.7.0 | 13.7.1 | 7.0.0 |

### icon-size

*[Layout](<#layout>) property. Optional [number](<https://maplibre.org/maplibre-style-spec/types/index.md#number>) in range `[0, ∞)`. Units in factor of the original icon size. Defaults to `1`. Requires [`icon-image`](<#icon-image>). Supports [interpolate](<https://maplibre.org/maplibre-style-spec/expressions/index.md#interpolate>) expressions.*

Scales the original size of the icon by the provided factor. The new pixel size of the image will be the original pixel size multiplied by `icon-size`. 1 is the original size; 3 triples the size of the image.

| SDK Support | MapLibre GL JS | MapLibre Native<br>Android | MapLibre Native<br>iOS |
| --- | --- | --- | --- |
| basic functionality | 0.10.0 | 2.0.1 | 2.0.0 |
| data-driven styling | 0.35.0 | 5.1.0 | 3.6.0 |
| [`global-state`](<https://maplibre.org/maplibre-style-spec/expressions/index.md#global-state>) expression | 5.7.0 | 13.7.1 | 7.0.0 |

### icon-text-fit

*[Layout](<#layout>) property. Optional [enum](<https://maplibre.org/maplibre-style-spec/types/index.md#enum>). Possible values: `none`, `width`, `height`, `both`. Defaults to `"none"`. Requires [`icon-image`](<#icon-image>). Requires [`text-field`](<#text-field>).*

Scales the icon to fit around the associated text.

- `none`: The icon is displayed at its intrinsic aspect ratio.
- `width`: The icon is scaled in the x-dimension to fit the width of the text.
- `height`: The icon is scaled in the y-dimension to fit the height of the text.
- `both`: The icon is scaled in both x- and y-dimensions.

| SDK Support | MapLibre GL JS | MapLibre Native<br>Android | MapLibre Native<br>iOS |
| --- | --- | --- | --- |
| basic functionality | 0.21.0 | 4.2.0 | 3.4.0 |
| stretchable icons | 1.6.0 | 9.2.0 | 5.8.0 |
| [`global-state`](<https://maplibre.org/maplibre-style-spec/expressions/index.md#global-state>) expression | 5.7.0 | 13.7.1 | 7.0.0 |

### icon-text-fit-padding

*[Layout](<#layout>) property. Optional [array](<https://maplibre.org/maplibre-style-spec/types/index.md#array>). Units in pixels. Defaults to `[0,0,0,0]`. Requires [`icon-image`](<#icon-image>). Requires [`text-field`](<#text-field>). Requires `icon-text-fit` to be one of `both`, `width`, `height`. Supports [interpolate](<https://maplibre.org/maplibre-style-spec/expressions/index.md#interpolate>) expressions.*

Size of the additional area added to dimensions determined by [`icon-text-fit`](<https://maplibre.org/maplibre-style-spec/layers/index.md#icon-text-fit>), in clockwise order: top, right, bottom, left.

| SDK Support | MapLibre GL JS | MapLibre Native<br>Android | MapLibre Native<br>iOS |
| --- | --- | --- | --- |
| basic functionality | 0.21.0 | 4.2.0 | 3.4.0 |
| [`global-state`](<https://maplibre.org/maplibre-style-spec/expressions/index.md#global-state>) expression | 5.7.0 | 13.7.1 | 7.0.0 |

### icon-image

*[Layout](<#layout>) property. Optional [resolvedImage](<https://maplibre.org/maplibre-style-spec/types/index.md#resolvedimage>).*

Name of image in sprite to use for drawing an image background.

| SDK Support | MapLibre GL JS | MapLibre Native<br>Android | MapLibre Native<br>iOS |
| --- | --- | --- | --- |
| basic functionality | 0.10.0 | 2.0.1 | 2.0.0 |
| data-driven styling | 0.35.0 | 5.1.0 | 3.6.0 |
| [`global-state`](<https://maplibre.org/maplibre-style-spec/expressions/index.md#global-state>) expression | 5.7.0 | 13.7.1 | 7.0.0 |

### icon-rotate

*[Layout](<#layout>) property. Optional [number](<https://maplibre.org/maplibre-style-spec/types/index.md#number>). Units in degrees. Defaults to `0`. Requires [`icon-image`](<#icon-image>). Supports [interpolate](<https://maplibre.org/maplibre-style-spec/expressions/index.md#interpolate>) expressions.*

Rotates the icon clockwise.

| SDK Support | MapLibre GL JS | MapLibre Native<br>Android | MapLibre Native<br>iOS |
| --- | --- | --- | --- |
| basic functionality | 0.10.0 | 2.0.1 | 2.0.0 |
| data-driven styling | 0.21.0 | 5.0.0 | 3.5.0 |
| [`global-state`](<https://maplibre.org/maplibre-style-spec/expressions/index.md#global-state>) expression | 5.7.0 | 13.7.1 | 7.0.0 |

### icon-padding

*[Layout](<#layout>) property. Optional [padding](<https://maplibre.org/maplibre-style-spec/types/index.md#padding>). Units in pixels. Defaults to `[2]`. Requires [`icon-image`](<#icon-image>). Supports [interpolate](<https://maplibre.org/maplibre-style-spec/expressions/index.md#interpolate>) expressions.*

Size of additional area round the icon bounding box used for detecting symbol collisions.

| SDK Support | MapLibre GL JS | MapLibre Native<br>Android | MapLibre Native<br>iOS |
| --- | --- | --- | --- |
| basic functionality | 0.10.0 | 2.0.1 | 2.0.0 |
| data-driven styling | 2.2.0 | ❌ ([\#2754](<https://github.com/maplibre/maplibre-native/issues/2754>)) | ❌ ([\#2754](<https://github.com/maplibre/maplibre-native/issues/2754>)) |
| [`global-state`](<https://maplibre.org/maplibre-style-spec/expressions/index.md#global-state>) expression | 5.7.0 | 13.7.1 | 7.0.0 |

### icon-keep-upright

*[Layout](<#layout>) property. Optional [boolean](<https://maplibre.org/maplibre-style-spec/types/index.md#boolean>). Defaults to `false`. Requires [`icon-image`](<#icon-image>). Requires `icon-rotation-alignment` to be `map`. Requires `symbol-placement` to be one of `line`, `line-center`.*

If true, the icon may be flipped to prevent it from being rendered upside-down.

| SDK Support | MapLibre GL JS | MapLibre Native<br>Android | MapLibre Native<br>iOS |
| --- | --- | --- | --- |
| basic functionality | 0.10.0 | 2.0.1 | 2.0.0 |
| [`global-state`](<https://maplibre.org/maplibre-style-spec/expressions/index.md#global-state>) expression | 5.7.0 | 13.7.1 | 7.0.0 |

### icon-offset

*[Layout](<#layout>) property. Optional [array](<https://maplibre.org/maplibre-style-spec/types/index.md#array>). Defaults to `[0,0]`. Requires [`icon-image`](<#icon-image>). Supports [interpolate](<https://maplibre.org/maplibre-style-spec/expressions/index.md#interpolate>) expressions.*

Offset distance of icon from its anchor. Positive values indicate right and down, while negative values indicate left and up. Each component is multiplied by the value of [`icon-size`](<https://maplibre.org/maplibre-style-spec/layers/index.md#icon-size>) to obtain the final offset in pixels. When combined with [`icon-rotate`](<https://maplibre.org/maplibre-style-spec/layers/index.md#icon-rotate>) the offset will be as if the rotated direction was up.

| SDK Support | MapLibre GL JS | MapLibre Native<br>Android | MapLibre Native<br>iOS |
| --- | --- | --- | --- |
| basic functionality | 0.10.0 | 2.0.1 | 2.0.0 |
| data-driven styling | 0.29.0 | 5.0.0 | 3.5.0 |
| [`global-state`](<https://maplibre.org/maplibre-style-spec/expressions/index.md#global-state>) expression | 5.7.0 | 13.7.1 | 7.0.0 |

### icon-anchor

*[Layout](<#layout>) property. Optional [enum](<https://maplibre.org/maplibre-style-spec/types/index.md#enum>). Possible values: `center`, `left`, `right`, `top`, `bottom`, `top-left`, `top-right`, `bottom-left`, `bottom-right`. Defaults to `"center"`. Requires [`icon-image`](<#icon-image>).*

Part of the icon placed closest to the anchor.

- `center`: The center of the icon is placed closest to the anchor.
- `left`: The left side of the icon is placed closest to the anchor.
- `right`: The right side of the icon is placed closest to the anchor.
- `top`: The top of the icon is placed closest to the anchor.
- `bottom`: The bottom of the icon is placed closest to the anchor.
- `top-left`: The top left corner of the icon is placed closest to the anchor.
- `top-right`: The top right corner of the icon is placed closest to the anchor.
- `bottom-left`: The bottom left corner of the icon is placed closest to the anchor.
- `bottom-right`: The bottom right corner of the icon is placed closest to the anchor.

| SDK Support | MapLibre GL JS | MapLibre Native<br>Android | MapLibre Native<br>iOS |
| --- | --- | --- | --- |
| basic functionality | 0.40.0 | 5.2.0 | 3.7.0 |
| data-driven styling | 0.40.0 | 5.2.0 | 3.7.0 |
| [`global-state`](<https://maplibre.org/maplibre-style-spec/expressions/index.md#global-state>) expression | 5.7.0 | 13.7.1 | 7.0.0 |

### icon-pitch-alignment

*[Layout](<#layout>) property. Optional [enum](<https://maplibre.org/maplibre-style-spec/types/index.md#enum>). Possible values: `map`, `viewport`, `auto`. Defaults to `"auto"`. Requires [`icon-image`](<#icon-image>).*

Orientation of icon when map is pitched.

- `map`: The icon is aligned to the plane of the map.
- `viewport`: The icon is aligned to the plane of the viewport.
- `auto`: Automatically matches the value of [`icon-rotation-alignment`](<https://maplibre.org/maplibre-style-spec/layers/index.md#icon-rotation-alignment>).

| SDK Support | MapLibre GL JS | MapLibre Native<br>Android | MapLibre Native<br>iOS |
| --- | --- | --- | --- |
| basic functionality | 0.39.0 | 5.2.0 | 3.7.0 |
| [`global-state`](<https://maplibre.org/maplibre-style-spec/expressions/index.md#global-state>) expression | 5.7.0 | 13.7.1 | 7.0.0 |

### text-pitch-alignment

*[Layout](<#layout>) property. Optional [enum](<https://maplibre.org/maplibre-style-spec/types/index.md#enum>). Possible values: `map`, `viewport`, `auto`. Defaults to `"auto"`. Requires [`text-field`](<#text-field>).*

Orientation of text when map is pitched.

- `map`: The text is aligned to the plane of the map.
- `viewport`: The text is aligned to the plane of the viewport.
- `auto`: Automatically matches the value of [`text-rotation-alignment`](<https://maplibre.org/maplibre-style-spec/layers/index.md#text-rotation-alignment>).

| SDK Support | MapLibre GL JS | MapLibre Native<br>Android | MapLibre Native<br>iOS |
| --- | --- | --- | --- |
| basic functionality | 0.21.0 | 4.2.0 | 3.4.0 |
| `auto` value | 0.25.0 | 4.2.0 | 3.4.0 |
| [`global-state`](<https://maplibre.org/maplibre-style-spec/expressions/index.md#global-state>) expression | 5.7.0 | 13.7.1 | 7.0.0 |

### text-rotation-alignment

*[Layout](<#layout>) property. Optional [enum](<https://maplibre.org/maplibre-style-spec/types/index.md#enum>). Possible values: `map`, `viewport`, `viewport-glyph`, `auto`. Defaults to `"auto"`. Requires [`text-field`](<#text-field>).*

In combination with [`symbol-placement`](<https://maplibre.org/maplibre-style-spec/layers/index.md#symbol-placement>), determines the rotation behavior of the individual glyphs forming the text.

- `map`: When [`symbol-placement`](<https://maplibre.org/maplibre-style-spec/layers/index.md#symbol-placement>) is set to `point`, aligns text east-west. When `symbol-placement` is set to `line` or `line-center`, aligns text x-axes with the line.
- `viewport`: Produces glyphs whose x-axes are aligned with the x-axis of the viewport, regardless of the value of [`symbol-placement`](<https://maplibre.org/maplibre-style-spec/layers/index.md#symbol-placement>).
- `viewport-glyph`: When [`symbol-placement`](<https://maplibre.org/maplibre-style-spec/layers/index.md#symbol-placement>) is set to `point`, aligns text to the x-axis of the viewport. When `symbol-placement` is set to `line` or `line-center`, aligns glyphs to the x-axis of the viewport and places them along the line.
- `auto`: When [`symbol-placement`](<https://maplibre.org/maplibre-style-spec/layers/index.md#symbol-placement>) is set to `point`, this is equivalent to `viewport`. When `symbol-placement` is set to `line` or `line-center`, this is equivalent to `map`.

| SDK Support | MapLibre GL JS | MapLibre Native<br>Android | MapLibre Native<br>iOS |
| --- | --- | --- | --- |
| basic functionality | 0.10.0 | 2.0.1 | 2.0.0 |
| `auto` value | 0.25.0 | 4.2.0 | 3.4.0 |
| `viewport-glyph` value | 2.1.8 | ❌ ([\#250](<https://github.com/maplibre/maplibre-native/issues/250>)) | ❌ ([\#250](<https://github.com/maplibre/maplibre-native/issues/250>)) |
| [`global-state`](<https://maplibre.org/maplibre-style-spec/expressions/index.md#global-state>) expression | 5.7.0 | 13.7.1 | 7.0.0 |

### text-field

*[Layout](<#layout>) property. Optional [formatted](<https://maplibre.org/maplibre-style-spec/types/index.md#formatted>). Defaults to `""`.*

Value to use for a text label. If a plain `string` is provided, it will be treated as a `formatted` with default/inherited formatting options.

| SDK Support | MapLibre GL JS | MapLibre Native<br>Android | MapLibre Native<br>iOS |
| --- | --- | --- | --- |
| basic functionality | 0.10.0 | 2.0.1 | 2.0.0 |
| data-driven styling | 0.33.0 | 5.0.0 | 3.5.0 |
| [`global-state`](<https://maplibre.org/maplibre-style-spec/expressions/index.md#global-state>) expression | 5.7.0 | 13.7.1 | 7.0.0 |

### text-font

*[Layout](<#layout>) property. Optional [array](<https://maplibre.org/maplibre-style-spec/types/index.md#array>). Defaults to `["Open Sans Regular","Arial Unicode MS Regular"]`. Requires [`text-field`](<#text-field>).*

Fonts to use for displaying text. If the `glyphs` root property is specified, this array is joined together and interpreted as a font stack name. Otherwise, it is interpreted as a cascading fallback list of local font names.

| SDK Support | MapLibre GL JS | MapLibre Native<br>Android | MapLibre Native<br>iOS |
| --- | --- | --- | --- |
| basic functionality | 0.10.0 | 2.0.1 | 2.0.0 |
| data-driven styling | 0.43.0 | 6.0.0 | 4.0.0 |
| local fonts | ❌ ([\#3302](<https://github.com/maplibre/maplibre-gl-js/issues/3302>)) | ❌ ([\#165](<https://github.com/maplibre/maplibre-native/issues/165>)) | ❌ ([\#165](<https://github.com/maplibre/maplibre-native/issues/165>)) |
| [`global-state`](<https://maplibre.org/maplibre-style-spec/expressions/index.md#global-state>) expression | 5.7.0 | 13.7.1 | 7.0.0 |

### text-size

*[Layout](<#layout>) property. Optional [number](<https://maplibre.org/maplibre-style-spec/types/index.md#number>) in range `[0, ∞)`. Units in pixels. Defaults to `16`. Requires [`text-field`](<#text-field>). Supports [interpolate](<https://maplibre.org/maplibre-style-spec/expressions/index.md#interpolate>) expressions.*

Font size.

| SDK Support | MapLibre GL JS | MapLibre Native<br>Android | MapLibre Native<br>iOS |
| --- | --- | --- | --- |
| basic functionality | 0.10.0 | 2.0.1 | 2.0.0 |
| data-driven styling | 0.35.0 | 5.1.0 | 3.6.0 |
| [`global-state`](<https://maplibre.org/maplibre-style-spec/expressions/index.md#global-state>) expression | 5.7.0 | 13.7.1 | 7.0.0 |

### text-max-width

*[Layout](<#layout>) property. Optional [number](<https://maplibre.org/maplibre-style-spec/types/index.md#number>) in range `[0, ∞)`. Units in ems. Defaults to `10`. Requires [`text-field`](<#text-field>). Supports [interpolate](<https://maplibre.org/maplibre-style-spec/expressions/index.md#interpolate>) expressions.*

The maximum line width for text wrapping.

| SDK Support | MapLibre GL JS | MapLibre Native<br>Android | MapLibre Native<br>iOS |
| --- | --- | --- | --- |
| basic functionality | 0.10.0 | 2.0.1 | 2.0.0 |
| data-driven styling | 0.40.0 | 5.2.0 | 3.7.0 |
| [`global-state`](<https://maplibre.org/maplibre-style-spec/expressions/index.md#global-state>) expression | 5.7.0 | 13.7.1 | 7.0.0 |

### text-line-height

*[Layout](<#layout>) property. Optional [number](<https://maplibre.org/maplibre-style-spec/types/index.md#number>). Units in ems. Defaults to `1.2`. Requires [`text-field`](<#text-field>). Supports [interpolate](<https://maplibre.org/maplibre-style-spec/expressions/index.md#interpolate>) expressions.*

Text leading value for multi-line text.

| SDK Support | MapLibre GL JS | MapLibre Native<br>Android | MapLibre Native<br>iOS |
| --- | --- | --- | --- |
| basic functionality | 0.10.0 | 2.0.1 | 2.0.0 |
| [`global-state`](<https://maplibre.org/maplibre-style-spec/expressions/index.md#global-state>) expression | 5.7.0 | 13.7.1 | 7.0.0 |

### text-letter-spacing

*[Layout](<#layout>) property. Optional [number](<https://maplibre.org/maplibre-style-spec/types/index.md#number>). Units in ems. Defaults to `0`. Requires [`text-field`](<#text-field>). Supports [interpolate](<https://maplibre.org/maplibre-style-spec/expressions/index.md#interpolate>) expressions.*

Text tracking amount.

| SDK Support | MapLibre GL JS | MapLibre Native<br>Android | MapLibre Native<br>iOS |
| --- | --- | --- | --- |
| basic functionality | 0.10.0 | 2.0.1 | 2.0.0 |
| data-driven styling | 0.40.0 | 5.2.0 | 3.7.0 |
| [`global-state`](<https://maplibre.org/maplibre-style-spec/expressions/index.md#global-state>) expression | 5.7.0 | 13.7.1 | 7.0.0 |

### text-justify

*[Layout](<#layout>) property. Optional [enum](<https://maplibre.org/maplibre-style-spec/types/index.md#enum>). Possible values: `auto`, `left`, `center`, `right`. Defaults to `"center"`. Requires [`text-field`](<#text-field>).*

Text justification options.

- `auto`: The text is aligned towards the anchor position.
- `left`: The text is aligned to the left.
- `center`: The text is centered.
- `right`: The text is aligned to the right.

| SDK Support | MapLibre GL JS | MapLibre Native<br>Android | MapLibre Native<br>iOS |
| --- | --- | --- | --- |
| basic functionality | 0.10.0 | 2.0.1 | 2.0.0 |
| data-driven styling | 0.39.0 | 5.2.0 | 3.7.0 |
| auto | 0.54.0 | 7.4.0 | 4.10.0 |
| [`global-state`](<https://maplibre.org/maplibre-style-spec/expressions/index.md#global-state>) expression | 5.7.0 | 13.7.1 | 7.0.0 |

### text-radial-offset

*[Layout](<#layout>) property. Optional [number](<https://maplibre.org/maplibre-style-spec/types/index.md#number>). Units in ems. Defaults to `0`. Requires [`text-field`](<#text-field>). Supports [interpolate](<https://maplibre.org/maplibre-style-spec/expressions/index.md#interpolate>) expressions.*

Radial offset of text, in the direction of the symbol's anchor. Useful in combination with [`text-variable-anchor`](<https://maplibre.org/maplibre-style-spec/layers/index.md#text-variable-anchor>), which defaults to using the two-dimensional [`text-offset`](<https://maplibre.org/maplibre-style-spec/layers/index.md#text-offset>) if present.

| SDK Support | MapLibre GL JS | MapLibre Native<br>Android | MapLibre Native<br>iOS |
| --- | --- | --- | --- |
| basic functionality | 0.54.0 | 7.4.0 | 4.10.0 |
| data-driven styling | 0.54.0 | 7.4.0 | 4.10.0 |
| [`global-state`](<https://maplibre.org/maplibre-style-spec/expressions/index.md#global-state>) expression | 5.7.0 | 13.7.1 | 7.0.0 |

### text-variable-anchor

*[Layout](<#layout>) property. Optional [array](<https://maplibre.org/maplibre-style-spec/types/index.md#array>). Requires [`text-field`](<#text-field>). Requires `symbol-placement` to be `point`.*

To increase the chance of placing high-priority labels on the map, you can provide an array of [`text-anchor`](<https://maplibre.org/maplibre-style-spec/layers/index.md#text-anchor>) locations: the renderer will attempt to place the label at each location, in order, before moving onto the next label. Use `text-justify: auto` to choose justification based on anchor position. To apply an offset, use the [`text-radial-offset`](<https://maplibre.org/maplibre-style-spec/layers/index.md#text-radial-offset>) or the two-dimensional [`text-offset`](<https://maplibre.org/maplibre-style-spec/layers/index.md#text-offset>).

```json
"text-variable-anchor": ["center", "left", "right"]
```

| SDK Support | MapLibre GL JS | MapLibre Native<br>Android | MapLibre Native<br>iOS |
| --- | --- | --- | --- |
| basic functionality | 0.54.0 | 7.4.0 | 4.10.0 |
| [`global-state`](<https://maplibre.org/maplibre-style-spec/expressions/index.md#global-state>) expression | 5.7.0 | 13.7.1 | 7.0.0 |

### text-variable-anchor-offset

*[Layout](<#layout>) property. Optional. Requires [`text-field`](<#text-field>). Requires `symbol-placement` to be `point`. Supports [interpolate](<https://maplibre.org/maplibre-style-spec/expressions/index.md#interpolate>) expressions.*

To increase the chance of placing high-priority labels on the map, you can provide an array of [`text-anchor`](<https://maplibre.org/maplibre-style-spec/layers/index.md#text-anchor>) locations, each paired with an offset value. The renderer will attempt to place the label at each location, in order, before moving on to the next location+offset. Use `text-justify: auto` to choose justification based on anchor position.

The length of the array must be even, and must alternate between enum and point entries. i.e., each anchor location must be accompanied by a point, and that point defines the offset when the corresponding anchor location is used. Positive offset values indicate right and down, while negative values indicate left and up. Anchor locations may repeat, allowing the renderer to try multiple offsets to try and place a label using the same anchor.

When present, this property takes precedence over `text-anchor`, [`text-variable-anchor`](<https://maplibre.org/maplibre-style-spec/layers/index.md#text-variable-anchor>), [`text-offset`](<https://maplibre.org/maplibre-style-spec/layers/index.md#text-offset>), and [`text-radial-offset`](<https://maplibre.org/maplibre-style-spec/layers/index.md#text-radial-offset>).

```json
{ "text-variable-anchor-offset": ["top", [0, 4], "left", [3,0], "bottom", [1, 1]] } 
```

When the renderer chooses the `top` anchor, `[0, 4]` will be used for `text-offset`; the text will be shifted down by 4 ems.

When the renderer chooses the `left` anchor, `[3, 0]` will be used for `text-offset`; the text will be shifted right by 3 ems.

```json
"text-variable-anchor-offset": ["top", [0, 4], "left", [3, 0], "bottom", [1, 1]]
```

| SDK Support | MapLibre GL JS | MapLibre Native<br>Android | MapLibre Native<br>iOS |
| --- | --- | --- | --- |
| basic functionality | 3.3.0 | 11.6.0 | 6.8.0 |
| data-driven styling | 3.3.0 | ❌ ([\#2358](<https://github.com/maplibre/maplibre-native/issues/2358>)) | ❌ ([\#2358](<https://github.com/maplibre/maplibre-native/issues/2358>)) |
| [`global-state`](<https://maplibre.org/maplibre-style-spec/expressions/index.md#global-state>) expression | 5.7.0 | 13.7.1 | 7.0.0 |

### text-anchor

*[Layout](<#layout>) property. Optional [enum](<https://maplibre.org/maplibre-style-spec/types/index.md#enum>). Possible values: `center`, `left`, `right`, `top`, `bottom`, `top-left`, `top-right`, `bottom-left`, `bottom-right`. Defaults to `"center"`. Requires [`text-field`](<#text-field>). Disabled by [`text-variable-anchor`](<#text-variable-anchor>).*

Part of the text placed closest to the anchor.

- `center`: The center of the text is placed closest to the anchor.
- `left`: The left side of the text is placed closest to the anchor.
- `right`: The right side of the text is placed closest to the anchor.
- `top`: The top of the text is placed closest to the anchor.
- `bottom`: The bottom of the text is placed closest to the anchor.
- `top-left`: The top left corner of the text is placed closest to the anchor.
- `top-right`: The top right corner of the text is placed closest to the anchor.
- `bottom-left`: The bottom left corner of the text is placed closest to the anchor.
- `bottom-right`: The bottom right corner of the text is placed closest to the anchor.

| SDK Support | MapLibre GL JS | MapLibre Native<br>Android | MapLibre Native<br>iOS |
| --- | --- | --- | --- |
| basic functionality | 0.10.0 | 2.0.1 | 2.0.0 |
| data-driven styling | 0.39.0 | 5.2.0 | 3.7.0 |
| [`global-state`](<https://maplibre.org/maplibre-style-spec/expressions/index.md#global-state>) expression | 5.7.0 | 13.7.1 | 7.0.0 |

### text-max-angle

*[Layout](<#layout>) property. Optional [number](<https://maplibre.org/maplibre-style-spec/types/index.md#number>). Units in degrees. Defaults to `45`. Requires [`text-field`](<#text-field>). Requires `symbol-placement` to be one of `line`, `line-center`. Supports [interpolate](<https://maplibre.org/maplibre-style-spec/expressions/index.md#interpolate>) expressions.*

Maximum angle change between adjacent characters.

| SDK Support | MapLibre GL JS | MapLibre Native<br>Android | MapLibre Native<br>iOS |
| --- | --- | --- | --- |
| basic functionality | 0.10.0 | 2.0.1 | 2.0.0 |
| [`global-state`](<https://maplibre.org/maplibre-style-spec/expressions/index.md#global-state>) expression | 5.7.0 | 13.7.1 | 7.0.0 |

### text-writing-mode

*[Layout](<#layout>) property. Optional [array](<https://maplibre.org/maplibre-style-spec/types/index.md#array>). Requires [`text-field`](<#text-field>). Requires `symbol-placement` to be `point`.*

The property allows control over a symbol's orientation. Note that the property values act as a hint, so that a symbol whose language doesn’t support the provided orientation will be laid out in its natural orientation. Example: English point symbol will be rendered horizontally even if array value contains single 'vertical' enum value. The order of elements in an array define priority order for the placement of an orientation variant.

| SDK Support | MapLibre GL JS | MapLibre Native<br>Android | MapLibre Native<br>iOS |
| --- | --- | --- | --- |
| basic functionality | 1.3.0 | 8.3.0 | 5.3.0 |
| [`global-state`](<https://maplibre.org/maplibre-style-spec/expressions/index.md#global-state>) expression | 5.7.0 | 13.7.1 | 7.0.0 |

### text-rotate

*[Layout](<#layout>) property. Optional [number](<https://maplibre.org/maplibre-style-spec/types/index.md#number>). Units in degrees. Defaults to `0`. Requires [`text-field`](<#text-field>). Supports [interpolate](<https://maplibre.org/maplibre-style-spec/expressions/index.md#interpolate>) expressions.*

Rotates the text clockwise.

| SDK Support | MapLibre GL JS | MapLibre Native<br>Android | MapLibre Native<br>iOS |
| --- | --- | --- | --- |
| basic functionality | 0.10.0 | 2.0.1 | 2.0.0 |
| data-driven styling | 0.35.0 | 5.1.0 | 3.6.0 |
| [`global-state`](<https://maplibre.org/maplibre-style-spec/expressions/index.md#global-state>) expression | 5.7.0 | 13.7.1 | 7.0.0 |

### text-padding

*[Layout](<#layout>) property. Optional [number](<https://maplibre.org/maplibre-style-spec/types/index.md#number>) in range `[0, ∞)`. Units in pixels. Defaults to `2`. Requires [`text-field`](<#text-field>). Supports [interpolate](<https://maplibre.org/maplibre-style-spec/expressions/index.md#interpolate>) expressions.*

Size of the additional area around the text bounding box used for detecting symbol collisions.

| SDK Support | MapLibre GL JS | MapLibre Native<br>Android | MapLibre Native<br>iOS |
| --- | --- | --- | --- |
| basic functionality | 0.10.0 | 2.0.1 | 2.0.0 |
| [`global-state`](<https://maplibre.org/maplibre-style-spec/expressions/index.md#global-state>) expression | 5.7.0 | 13.7.1 | 7.0.0 |

### text-keep-upright

*[Layout](<#layout>) property. Optional [boolean](<https://maplibre.org/maplibre-style-spec/types/index.md#boolean>). Defaults to `true`. Requires [`text-field`](<#text-field>). Requires `text-rotation-alignment` to be `map`. Requires `symbol-placement` to be one of `line`, `line-center`.*

If true, the text may be flipped vertically to prevent it from being rendered upside-down.

| SDK Support | MapLibre GL JS | MapLibre Native<br>Android | MapLibre Native<br>iOS |
| --- | --- | --- | --- |
| basic functionality | 0.10.0 | 2.0.1 | 2.0.0 |
| [`global-state`](<https://maplibre.org/maplibre-style-spec/expressions/index.md#global-state>) expression | 5.7.0 | 13.7.1 | 7.0.0 |

### text-transform

*[Layout](<#layout>) property. Optional [enum](<https://maplibre.org/maplibre-style-spec/types/index.md#enum>). Possible values: `none`, `uppercase`, `lowercase`. Defaults to `"none"`. Requires [`text-field`](<#text-field>).*

Specifies how to capitalize text, similar to the CSS `text-transform` property.

- `none`: The text is not altered.
- `uppercase`: Forces all letters to be displayed in uppercase.
- `lowercase`: Forces all letters to be displayed in lowercase.

| SDK Support | MapLibre GL JS | MapLibre Native<br>Android | MapLibre Native<br>iOS |
| --- | --- | --- | --- |
| basic functionality | 0.10.0 | 2.0.1 | 2.0.0 |
| data-driven styling | 0.33.0 | 5.0.0 | 3.5.0 |
| [`global-state`](<https://maplibre.org/maplibre-style-spec/expressions/index.md#global-state>) expression | 5.7.0 | 13.7.1 | 7.0.0 |

### text-offset

*[Layout](<#layout>) property. Optional [array](<https://maplibre.org/maplibre-style-spec/types/index.md#array>). Units in ems. Defaults to `[0,0]`. Requires [`text-field`](<#text-field>). Disabled by [`text-radial-offset`](<#text-radial-offset>). Supports [interpolate](<https://maplibre.org/maplibre-style-spec/expressions/index.md#interpolate>) expressions.*

Offset distance of text from its anchor. Positive values indicate right and down, while negative values indicate left and up. If used with text-variable-anchor, input values will be taken as absolute values. Offsets along the x- and y-axis will be applied automatically based on the anchor position.

| SDK Support | MapLibre GL JS | MapLibre Native<br>Android | MapLibre Native<br>iOS |
| --- | --- | --- | --- |
| basic functionality | 0.10.0 | 2.0.1 | 2.0.0 |
| data-driven styling | 0.35.0 | 5.1.0 | 3.6.0 |
| [`global-state`](<https://maplibre.org/maplibre-style-spec/expressions/index.md#global-state>) expression | 5.7.0 | 13.7.1 | 7.0.0 |

### text-allow-overlap

*[Layout](<#layout>) property. Optional [boolean](<https://maplibre.org/maplibre-style-spec/types/index.md#boolean>). Defaults to `false`. Requires [`text-field`](<#text-field>). Disabled by [`text-overlap`](<#text-overlap>).*

If true, the text will be visible even if it collides with other previously drawn symbols.

| SDK Support | MapLibre GL JS | MapLibre Native<br>Android | MapLibre Native<br>iOS |
| --- | --- | --- | --- |
| basic functionality | 0.10.0 | 2.0.1 | 2.0.0 |
| [`global-state`](<https://maplibre.org/maplibre-style-spec/expressions/index.md#global-state>) expression | 5.7.0 | 13.7.1 | 7.0.0 |

### text-overlap

*[Layout](<#layout>) property. Optional [enum](<https://maplibre.org/maplibre-style-spec/types/index.md#enum>). Possible values: `never`, `always`, `cooperative`. Requires [`text-field`](<#text-field>).*

Allows for control over whether to show symbol text when it overlaps other symbols on the map. If `text-overlap` is not set, [`text-allow-overlap`](<https://maplibre.org/maplibre-style-spec/layers/index.md#text-allow-overlap>) is used instead

- `never`: The text will be hidden if it collides with any other previously drawn symbol.
- `always`: The text will be visible even if it collides with any other previously drawn symbol.
- `cooperative`: If the text collides with another previously drawn symbol, the overlap mode for that symbol is checked. If the previous symbol was placed using `never` overlap mode, the new text is hidden. If the previous symbol was placed using `always` or `cooperative` overlap mode, the new text is visible.

| SDK Support | MapLibre GL JS | MapLibre Native<br>Android | MapLibre Native<br>iOS |
| --- | --- | --- | --- |
| basic functionality | 2.1.0 | ❌ ([\#251](<https://github.com/maplibre/maplibre-native/issues/251>)) | ❌ ([\#251](<https://github.com/maplibre/maplibre-native/issues/251>)) |
| [`global-state`](<https://maplibre.org/maplibre-style-spec/expressions/index.md#global-state>) expression | 5.7.0 | ❌ ([\#251](<https://github.com/maplibre/maplibre-native/issues/251>)) | ❌ ([\#251](<https://github.com/maplibre/maplibre-native/issues/251>)) |

### text-ignore-placement

*[Layout](<#layout>) property. Optional [boolean](<https://maplibre.org/maplibre-style-spec/types/index.md#boolean>). Defaults to `false`. Requires [`text-field`](<#text-field>).*

If true, other symbols can be visible even if they collide with the text.

| SDK Support | MapLibre GL JS | MapLibre Native<br>Android | MapLibre Native<br>iOS |
| --- | --- | --- | --- |
| basic functionality | 0.10.0 | 2.0.1 | 2.0.0 |
| [`global-state`](<https://maplibre.org/maplibre-style-spec/expressions/index.md#global-state>) expression | 5.7.0 | 13.7.1 | 7.0.0 |

### text-optional

*[Layout](<#layout>) property. Optional [boolean](<https://maplibre.org/maplibre-style-spec/types/index.md#boolean>). Defaults to `false`. Requires [`text-field`](<#text-field>). Requires [`icon-image`](<#icon-image>).*

If true, icons will display without their corresponding text when the text collides with other symbols and the icon does not.

| SDK Support | MapLibre GL JS | MapLibre Native<br>Android | MapLibre Native<br>iOS |
| --- | --- | --- | --- |
| basic functionality | 0.10.0 | 2.0.1 | 2.0.0 |
| [`global-state`](<https://maplibre.org/maplibre-style-spec/expressions/index.md#global-state>) expression | 5.7.0 | 13.7.1 | 7.0.0 |

### symbol-height-offset

*[Layout](<#layout>) property. Optional [number](<https://maplibre.org/maplibre-style-spec/types/index.md#number>). Units in meters. Defaults to `0`. Requires `symbol-placement` to be `point`. Supports [interpolate](<https://maplibre.org/maplibre-style-spec/expressions/index.md#interpolate>) expressions.*

The height above the anchor, in meters, at which the symbol is placed. Use [`symbol-height-anchor`](<https://maplibre.org/maplibre-style-spec/layers/index.md#symbol-height-anchor>) to control what this height is measured from.

| SDK Support | MapLibre GL JS | MapLibre Native<br>Android | MapLibre Native<br>iOS |
| --- | --- | --- | --- |
| basic functionality | 6.6.0 | ❌ ([\#1929](<https://github.com/maplibre/maplibre-native/issues/1929>)) | ❌ ([\#1929](<https://github.com/maplibre/maplibre-native/issues/1929>)) |
| data-driven styling | 6.6.0 | ❌ ([\#1929](<https://github.com/maplibre/maplibre-native/issues/1929>)) | ❌ ([\#1929](<https://github.com/maplibre/maplibre-native/issues/1929>)) |

### symbol-height-anchor

*[Layout](<#layout>) property. Optional [enum](<https://maplibre.org/maplibre-style-spec/types/index.md#enum>). Possible values: `ground`, `absolute`. Defaults to `"ground"`. Requires [`symbol-height-offset`](<#symbol-height-offset>).*

Defines what [`symbol-height-offset`](<https://maplibre.org/maplibre-style-spec/layers/index.md#symbol-height-offset>) is measured from.

- `ground`: [`symbol-height-offset`](<https://maplibre.org/maplibre-style-spec/layers/index.md#symbol-height-offset>) is measured from the ground below the symbol, i.e. the terrain elevation at the symbol's location, or zero when terrain is not enabled.
- `absolute`: [`symbol-height-offset`](<https://maplibre.org/maplibre-style-spec/layers/index.md#symbol-height-offset>) is measured from sea level, ignoring the terrain elevation at the symbol's location.

| SDK Support | MapLibre GL JS | MapLibre Native<br>Android | MapLibre Native<br>iOS |
| --- | --- | --- | --- |
| basic functionality | ❌ ([\#644](<https://github.com/maplibre/maplibre-gl-js/issues/644>)) | ❌ ([\#1929](<https://github.com/maplibre/maplibre-native/issues/1929>)) | ❌ ([\#1929](<https://github.com/maplibre/maplibre-native/issues/1929>)) |

### visibility

*[Layout](<#layout>) property. Optional [enum](<https://maplibre.org/maplibre-style-spec/types/index.md#enum>). Possible values: `visible`, `none`. Defaults to `"visible"`.*

Whether this layer is displayed.

- `visible`: The layer is shown.
- `none`: The layer is not shown.

| SDK Support | MapLibre GL JS | MapLibre Native<br>Android | MapLibre Native<br>iOS |
| --- | --- | --- | --- |
| basic functionality | 0.10.0 | 2.0.1 | 2.0.0 |
| [`global-state`](<https://maplibre.org/maplibre-style-spec/expressions/index.md#global-state>) expression | 5.16.0 | 13.7.1 | 7.0.0 |

### icon-opacity

*[Paint](<#paint>) property. Optional [number](<https://maplibre.org/maplibre-style-spec/types/index.md#number>) in range `[0, 1]`. Defaults to `1`. Requires [`icon-image`](<#icon-image>). Supports [feature-state](<https://maplibre.org/maplibre-style-spec/expressions/index.md#feature-state>) and [interpolate](<https://maplibre.org/maplibre-style-spec/expressions/index.md#interpolate>) expressions. [Transitionable](<https://maplibre.org/maplibre-style-spec/transition/index.md>).*

The opacity at which the icon will be drawn.

| SDK Support | MapLibre GL JS | MapLibre Native<br>Android | MapLibre Native<br>iOS |
| --- | --- | --- | --- |
| basic functionality | 0.10.0 | 2.0.1 | 2.0.0 |
| data-driven styling | 0.33.0 | 5.0.0 | 3.5.0 |
| [`global-state`](<https://maplibre.org/maplibre-style-spec/expressions/index.md#global-state>) expression | 5.6.0 | 13.7.1 | 7.0.0 |

### icon-color

*[Paint](<#paint>) property. Optional [color](<https://maplibre.org/maplibre-style-spec/types/index.md#color>). Defaults to `"#000000"`. Requires [`icon-image`](<#icon-image>). Supports [feature-state](<https://maplibre.org/maplibre-style-spec/expressions/index.md#feature-state>) and [interpolate](<https://maplibre.org/maplibre-style-spec/expressions/index.md#interpolate>) expressions. [Transitionable](<https://maplibre.org/maplibre-style-spec/transition/index.md>).*

The color of the icon. This can only be used with SDF icons.

| SDK Support | MapLibre GL JS | MapLibre Native<br>Android | MapLibre Native<br>iOS |
| --- | --- | --- | --- |
| basic functionality | 0.10.0 | 2.0.1 | 2.0.0 |
| data-driven styling | 0.33.0 | 5.0.0 | 3.5.0 |
| [`global-state`](<https://maplibre.org/maplibre-style-spec/expressions/index.md#global-state>) expression | 5.6.0 | 13.7.1 | 7.0.0 |

### icon-halo-color

*[Paint](<#paint>) property. Optional [color](<https://maplibre.org/maplibre-style-spec/types/index.md#color>). Defaults to `"rgba(0, 0, 0, 0)"`. Requires [`icon-image`](<#icon-image>). Supports [feature-state](<https://maplibre.org/maplibre-style-spec/expressions/index.md#feature-state>) and [interpolate](<https://maplibre.org/maplibre-style-spec/expressions/index.md#interpolate>) expressions. [Transitionable](<https://maplibre.org/maplibre-style-spec/transition/index.md>).*

The color of the icon's halo. Icon halos can only be used with SDF icons.

| SDK Support | MapLibre GL JS | MapLibre Native<br>Android | MapLibre Native<br>iOS |
| --- | --- | --- | --- |
| basic functionality | 0.10.0 | 2.0.1 | 2.0.0 |
| data-driven styling | 0.33.0 | 5.0.0 | 3.5.0 |
| [`global-state`](<https://maplibre.org/maplibre-style-spec/expressions/index.md#global-state>) expression | 5.6.0 | 13.7.1 | 7.0.0 |

### icon-halo-width

*[Paint](<#paint>) property. Optional [number](<https://maplibre.org/maplibre-style-spec/types/index.md#number>) in range `[0, ∞)`. Units in pixels. Defaults to `0`. Requires [`icon-image`](<#icon-image>). Supports [feature-state](<https://maplibre.org/maplibre-style-spec/expressions/index.md#feature-state>) and [interpolate](<https://maplibre.org/maplibre-style-spec/expressions/index.md#interpolate>) expressions. [Transitionable](<https://maplibre.org/maplibre-style-spec/transition/index.md>).*

Distance of halo to the icon outline.

The unit is in pixels only for SDF sprites that were created with a blur radius of 8, multiplied by the display density. I.e., the radius needs to be 16 for `@2x` sprites, etc.

| SDK Support | MapLibre GL JS | MapLibre Native<br>Android | MapLibre Native<br>iOS |
| --- | --- | --- | --- |
| basic functionality | 0.10.0 | 2.0.1 | 2.0.0 |
| data-driven styling | 0.33.0 | 5.0.0 | 3.5.0 |
| [`global-state`](<https://maplibre.org/maplibre-style-spec/expressions/index.md#global-state>) expression | 5.6.0 | 13.7.1 | 7.0.0 |

### icon-halo-blur

*[Paint](<#paint>) property. Optional [number](<https://maplibre.org/maplibre-style-spec/types/index.md#number>) in range `[0, ∞)`. Units in pixels. Defaults to `0`. Requires [`icon-image`](<#icon-image>). Supports [feature-state](<https://maplibre.org/maplibre-style-spec/expressions/index.md#feature-state>) and [interpolate](<https://maplibre.org/maplibre-style-spec/expressions/index.md#interpolate>) expressions. [Transitionable](<https://maplibre.org/maplibre-style-spec/transition/index.md>).*

Fade out the halo towards the outside.

| SDK Support | MapLibre GL JS | MapLibre Native<br>Android | MapLibre Native<br>iOS |
| --- | --- | --- | --- |
| basic functionality | 0.10.0 | 2.0.1 | 2.0.0 |
| data-driven styling | 0.33.0 | 5.0.0 | 3.5.0 |
| [`global-state`](<https://maplibre.org/maplibre-style-spec/expressions/index.md#global-state>) expression | 5.6.0 | 13.7.1 | 7.0.0 |

### icon-translate

*[Paint](<#paint>) property. Optional [array](<https://maplibre.org/maplibre-style-spec/types/index.md#array>). Units in pixels. Defaults to `[0,0]`. Requires [`icon-image`](<#icon-image>). Supports [interpolate](<https://maplibre.org/maplibre-style-spec/expressions/index.md#interpolate>) expressions. [Transitionable](<https://maplibre.org/maplibre-style-spec/transition/index.md>).*

Distance that the icon's anchor is moved from its original placement. Positive values indicate right and down, while negative values indicate left and up.

| SDK Support | MapLibre GL JS | MapLibre Native<br>Android | MapLibre Native<br>iOS |
| --- | --- | --- | --- |
| basic functionality | 0.10.0 | 2.0.1 | 2.0.0 |
| [`global-state`](<https://maplibre.org/maplibre-style-spec/expressions/index.md#global-state>) expression | 5.6.0 | 13.7.1 | 7.0.0 |

### icon-translate-anchor

*[Paint](<#paint>) property. Optional [enum](<https://maplibre.org/maplibre-style-spec/types/index.md#enum>). Possible values: `map`, `viewport`. Defaults to `"map"`. Requires [`icon-image`](<#icon-image>). Requires [`icon-translate`](<#icon-translate>).*

Controls the frame of reference for [`icon-translate`](<https://maplibre.org/maplibre-style-spec/layers/index.md#icon-translate>).

- `map`: Icons are translated relative to the map.
- `viewport`: Icons are translated relative to the viewport.

| SDK Support | MapLibre GL JS | MapLibre Native<br>Android | MapLibre Native<br>iOS |
| --- | --- | --- | --- |
| basic functionality | 0.10.0 | 2.0.1 | 2.0.0 |
| [`global-state`](<https://maplibre.org/maplibre-style-spec/expressions/index.md#global-state>) expression | 5.6.0 | 13.7.1 | 7.0.0 |

### text-opacity

*[Paint](<#paint>) property. Optional [number](<https://maplibre.org/maplibre-style-spec/types/index.md#number>) in range `[0, 1]`. Defaults to `1`. Requires [`text-field`](<#text-field>). Supports [feature-state](<https://maplibre.org/maplibre-style-spec/expressions/index.md#feature-state>) and [interpolate](<https://maplibre.org/maplibre-style-spec/expressions/index.md#interpolate>) expressions. [Transitionable](<https://maplibre.org/maplibre-style-spec/transition/index.md>).*

The opacity at which the text will be drawn.

| SDK Support | MapLibre GL JS | MapLibre Native<br>Android | MapLibre Native<br>iOS |
| --- | --- | --- | --- |
| basic functionality | 0.10.0 | 2.0.1 | 2.0.0 |
| data-driven styling | 0.33.0 | 5.0.0 | 3.5.0 |
| [`global-state`](<https://maplibre.org/maplibre-style-spec/expressions/index.md#global-state>) expression | 5.6.0 | 13.7.1 | 7.0.0 |

### text-color

*[Paint](<#paint>) property. Optional [color](<https://maplibre.org/maplibre-style-spec/types/index.md#color>). Defaults to `"#000000"`. Requires [`text-field`](<#text-field>). Supports [feature-state](<https://maplibre.org/maplibre-style-spec/expressions/index.md#feature-state>) and [interpolate](<https://maplibre.org/maplibre-style-spec/expressions/index.md#interpolate>) expressions. [Transitionable](<https://maplibre.org/maplibre-style-spec/transition/index.md>).*

The color with which the text will be drawn.

| SDK Support | MapLibre GL JS | MapLibre Native<br>Android | MapLibre Native<br>iOS |
| --- | --- | --- | --- |
| basic functionality | 0.10.0 | 2.0.1 | 2.0.0 |
| data-driven styling | 0.33.0 | 5.0.0 | 3.5.0 |
| [`global-state`](<https://maplibre.org/maplibre-style-spec/expressions/index.md#global-state>) expression | 5.6.0 | 13.7.1 | 7.0.0 |

### text-halo-color

*[Paint](<#paint>) property. Optional [color](<https://maplibre.org/maplibre-style-spec/types/index.md#color>). Defaults to `"rgba(0, 0, 0, 0)"`. Requires [`text-field`](<#text-field>). Supports [feature-state](<https://maplibre.org/maplibre-style-spec/expressions/index.md#feature-state>) and [interpolate](<https://maplibre.org/maplibre-style-spec/expressions/index.md#interpolate>) expressions. [Transitionable](<https://maplibre.org/maplibre-style-spec/transition/index.md>).*

The color of the text's halo, which helps it stand out from backgrounds.

| SDK Support | MapLibre GL JS | MapLibre Native<br>Android | MapLibre Native<br>iOS |
| --- | --- | --- | --- |
| basic functionality | 0.10.0 | 2.0.1 | 2.0.0 |
| data-driven styling | 0.33.0 | 5.0.0 | 3.5.0 |
| [`global-state`](<https://maplibre.org/maplibre-style-spec/expressions/index.md#global-state>) expression | 5.6.0 | 13.7.1 | 7.0.0 |

### text-halo-width

*[Paint](<#paint>) property. Optional [number](<https://maplibre.org/maplibre-style-spec/types/index.md#number>) in range `[0, ∞)`. Units in pixels. Defaults to `0`. Requires [`text-field`](<#text-field>). Supports [feature-state](<https://maplibre.org/maplibre-style-spec/expressions/index.md#feature-state>) and [interpolate](<https://maplibre.org/maplibre-style-spec/expressions/index.md#interpolate>) expressions. [Transitionable](<https://maplibre.org/maplibre-style-spec/transition/index.md>).*

Distance of halo to the font outline. Max text halo width is 1/4 of the font-size.

| SDK Support | MapLibre GL JS | MapLibre Native<br>Android | MapLibre Native<br>iOS |
| --- | --- | --- | --- |
| basic functionality | 0.10.0 | 2.0.1 | 2.0.0 |
| data-driven styling | 0.33.0 | 5.0.0 | 3.5.0 |
| [`global-state`](<https://maplibre.org/maplibre-style-spec/expressions/index.md#global-state>) expression | 5.6.0 | 13.7.1 | 7.0.0 |

### text-halo-blur

*[Paint](<#paint>) property. Optional [number](<https://maplibre.org/maplibre-style-spec/types/index.md#number>) in range `[0, ∞)`. Units in pixels. Defaults to `0`. Requires [`text-field`](<#text-field>). Supports [feature-state](<https://maplibre.org/maplibre-style-spec/expressions/index.md#feature-state>) and [interpolate](<https://maplibre.org/maplibre-style-spec/expressions/index.md#interpolate>) expressions. [Transitionable](<https://maplibre.org/maplibre-style-spec/transition/index.md>).*

The halo's fadeout distance towards the outside.

| SDK Support | MapLibre GL JS | MapLibre Native<br>Android | MapLibre Native<br>iOS |
| --- | --- | --- | --- |
| basic functionality | 0.10.0 | 2.0.1 | 2.0.0 |
| data-driven styling | 0.33.0 | 5.0.0 | 3.5.0 |
| [`global-state`](<https://maplibre.org/maplibre-style-spec/expressions/index.md#global-state>) expression | 5.6.0 | 13.7.1 | 7.0.0 |

### text-translate

*[Paint](<#paint>) property. Optional [array](<https://maplibre.org/maplibre-style-spec/types/index.md#array>). Units in pixels. Defaults to `[0,0]`. Requires [`text-field`](<#text-field>). Supports [interpolate](<https://maplibre.org/maplibre-style-spec/expressions/index.md#interpolate>) expressions. [Transitionable](<https://maplibre.org/maplibre-style-spec/transition/index.md>).*

Distance that the text's anchor is moved from its original placement. Positive values indicate right and down, while negative values indicate left and up.

| SDK Support | MapLibre GL JS | MapLibre Native<br>Android | MapLibre Native<br>iOS |
| --- | --- | --- | --- |
| basic functionality | 0.10.0 | 2.0.1 | 2.0.0 |
| [`global-state`](<https://maplibre.org/maplibre-style-spec/expressions/index.md#global-state>) expression | 5.6.0 | 13.7.1 | 7.0.0 |

### text-translate-anchor

*[Paint](<#paint>) property. Optional [enum](<https://maplibre.org/maplibre-style-spec/types/index.md#enum>). Possible values: `map`, `viewport`. Defaults to `"map"`. Requires [`text-field`](<#text-field>). Requires [`text-translate`](<#text-translate>).*

Controls the frame of reference for [`text-translate`](<https://maplibre.org/maplibre-style-spec/layers/index.md#text-translate>).

- `map`: The text is translated relative to the map.
- `viewport`: The text is translated relative to the viewport.

| SDK Support | MapLibre GL JS | MapLibre Native<br>Android | MapLibre Native<br>iOS |
| --- | --- | --- | --- |
| basic functionality | 0.10.0 | 2.0.1 | 2.0.0 |
| [`global-state`](<https://maplibre.org/maplibre-style-spec/expressions/index.md#global-state>) expression | 5.6.0 | 13.7.1 | 7.0.0 |

## Raster

### visibility

*[Layout](<#layout>) property. Optional [enum](<https://maplibre.org/maplibre-style-spec/types/index.md#enum>). Possible values: `visible`, `none`. Defaults to `"visible"`.*

Whether this layer is displayed.

- `visible`: The layer is shown.
- `none`: The layer is not shown.

| SDK Support | MapLibre GL JS | MapLibre Native<br>Android | MapLibre Native<br>iOS |
| --- | --- | --- | --- |
| basic functionality | 0.10.0 | 2.0.1 | 2.0.0 |
| [`global-state`](<https://maplibre.org/maplibre-style-spec/expressions/index.md#global-state>) expression | 5.16.0 | 13.7.1 | 7.0.0 |

### raster-opacity

*[Paint](<#paint>) property. Optional [number](<https://maplibre.org/maplibre-style-spec/types/index.md#number>) in range `[0, 1]`. Defaults to `1`. Supports [interpolate](<https://maplibre.org/maplibre-style-spec/expressions/index.md#interpolate>) expressions. [Transitionable](<https://maplibre.org/maplibre-style-spec/transition/index.md>).*

The opacity at which the image will be drawn.

| SDK Support | MapLibre GL JS | MapLibre Native<br>Android | MapLibre Native<br>iOS |
| --- | --- | --- | --- |
| basic functionality | 0.10.0 | 2.0.1 | 2.0.0 |
| [`global-state`](<https://maplibre.org/maplibre-style-spec/expressions/index.md#global-state>) expression | 5.6.0 | 13.7.1 | 7.0.0 |

### raster-layer-blend

*[Paint](<#paint>) property. Optional [enum](<https://maplibre.org/maplibre-style-spec/types/index.md#enum>). Possible values: `normal`, `multiply`, `color`, `luminosity`, `plus-lighter`, `screen`, `overlay`. Defaults to `"normal"`.*

Controls how the layer is composited with the content already rendered beneath it. Unlike [`raster-opacity`](<#raster-opacity>), which only fades the layer, this property determines how its colors interact with the existing map contents.

- `normal`: [Normal](<https://www.w3.org/TR/compositing-1/#blendingnormal>) blending. The layer is drawn on top of existing content using standard alpha compositing.
- `multiply`: [Multiply](<https://www.w3.org/TR/compositing-1/#blendingmultiply>) blending. The layer color is multiplied with the colors underneath, producing darker results. Useful for textures, hillshades, and combining raster and vector content.
- `color`: [Color](<https://www.w3.org/TR/compositing-1/#blendingcolor>) blending. Creates a color with the hue and saturation of the layer and the luminosity of the content underneath, preserving its gray levels. Useful for tinting monochrome content such as a hillshade.
- `luminosity`: [Luminosity](<https://www.w3.org/TR/compositing-1/#blendingluminosity>) blending. Creates a color with the luminosity of the layer and the hue and saturation of the content underneath. The inverse of `color`.
- `plus-lighter`: [Plus-lighter](<https://www.w3.org/TR/compositing-1/#porterduffcompositingoperators_plus>) blending. Additive blending. The layer color is added to the colors underneath, producing brighter results. Useful for glow and heat accumulation effects.
- `screen`: [Screen](<https://www.w3.org/TR/compositing-1/#blendingscreen>) blending. The inverse of the colors is multiplied, producing lighter results. Useful for glow, heatmap, and light-based effects.
- `overlay`: [Overlay](<https://www.w3.org/TR/compositing-1/#blendingoverlay>) blending. Multiplies or screens colors depending on the colors underneath, preserving highlights and shadows while adding contrast.

| SDK Support | MapLibre GL JS | MapLibre Native<br>Android | MapLibre Native<br>iOS |
| --- | --- | --- | --- |
| basic functionality | ❌ ([\#48](<https://github.com/maplibre/maplibre-gl-js/issues/48>)) | ❌ ([\#2963](<https://github.com/maplibre/maplibre-native/issues/2963>)) | ❌ ([\#2963](<https://github.com/maplibre/maplibre-native/issues/2963>)) |

### raster-hue-rotate

*[Paint](<#paint>) property. Optional [number](<https://maplibre.org/maplibre-style-spec/types/index.md#number>). Units in degrees. Defaults to `0`. Supports [interpolate](<https://maplibre.org/maplibre-style-spec/expressions/index.md#interpolate>) expressions. [Transitionable](<https://maplibre.org/maplibre-style-spec/transition/index.md>).*

Rotates hues around the color wheel.

| SDK Support | MapLibre GL JS | MapLibre Native<br>Android | MapLibre Native<br>iOS |
| --- | --- | --- | --- |
| basic functionality | 0.10.0 | 2.0.1 | 2.0.0 |
| [`global-state`](<https://maplibre.org/maplibre-style-spec/expressions/index.md#global-state>) expression | 5.6.0 | 13.7.1 | 7.0.0 |

### raster-brightness-min

*[Paint](<#paint>) property. Optional [number](<https://maplibre.org/maplibre-style-spec/types/index.md#number>) in range `[0, 1]`. Defaults to `0`. Supports [interpolate](<https://maplibre.org/maplibre-style-spec/expressions/index.md#interpolate>) expressions. [Transitionable](<https://maplibre.org/maplibre-style-spec/transition/index.md>).*

Increase or reduce the brightness of the image. The value is the minimum brightness.

| SDK Support | MapLibre GL JS | MapLibre Native<br>Android | MapLibre Native<br>iOS |
| --- | --- | --- | --- |
| basic functionality | 0.10.0 | 2.0.1 | 2.0.0 |
| [`global-state`](<https://maplibre.org/maplibre-style-spec/expressions/index.md#global-state>) expression | 5.6.0 | 13.7.1 | 7.0.0 |

### raster-brightness-max

*[Paint](<#paint>) property. Optional [number](<https://maplibre.org/maplibre-style-spec/types/index.md#number>) in range `[0, 1]`. Defaults to `1`. Supports [interpolate](<https://maplibre.org/maplibre-style-spec/expressions/index.md#interpolate>) expressions. [Transitionable](<https://maplibre.org/maplibre-style-spec/transition/index.md>).*

Increase or reduce the brightness of the image. The value is the maximum brightness.

| SDK Support | MapLibre GL JS | MapLibre Native<br>Android | MapLibre Native<br>iOS |
| --- | --- | --- | --- |
| basic functionality | 0.10.0 | 2.0.1 | 2.0.0 |
| [`global-state`](<https://maplibre.org/maplibre-style-spec/expressions/index.md#global-state>) expression | 5.6.0 | 13.7.1 | 7.0.0 |

### raster-saturation

*[Paint](<#paint>) property. Optional [number](<https://maplibre.org/maplibre-style-spec/types/index.md#number>) in range `[-1, 1]`. Defaults to `0`. Supports [interpolate](<https://maplibre.org/maplibre-style-spec/expressions/index.md#interpolate>) expressions. [Transitionable](<https://maplibre.org/maplibre-style-spec/transition/index.md>).*

Increase or reduce the saturation of the image.

| SDK Support | MapLibre GL JS | MapLibre Native<br>Android | MapLibre Native<br>iOS |
| --- | --- | --- | --- |
| basic functionality | 0.10.0 | 2.0.1 | 2.0.0 |
| [`global-state`](<https://maplibre.org/maplibre-style-spec/expressions/index.md#global-state>) expression | 5.6.0 | 13.7.1 | 7.0.0 |

### raster-contrast

*[Paint](<#paint>) property. Optional [number](<https://maplibre.org/maplibre-style-spec/types/index.md#number>) in range `[-1, 1]`. Defaults to `0`. Supports [interpolate](<https://maplibre.org/maplibre-style-spec/expressions/index.md#interpolate>) expressions. [Transitionable](<https://maplibre.org/maplibre-style-spec/transition/index.md>).*

Increase or reduce the contrast of the image.

| SDK Support | MapLibre GL JS | MapLibre Native<br>Android | MapLibre Native<br>iOS |
| --- | --- | --- | --- |
| basic functionality | 0.10.0 | 2.0.1 | 2.0.0 |
| [`global-state`](<https://maplibre.org/maplibre-style-spec/expressions/index.md#global-state>) expression | 5.6.0 | 13.7.1 | 7.0.0 |

### resampling

*[Paint](<#paint>) property. Optional [enum](<https://maplibre.org/maplibre-style-spec/types/index.md#enum>). Possible values: `linear`, `nearest`. Defaults to `"linear"`.*

The resampling/interpolation method to use for overscaling, also known as texture magnification filter. ![Visual comparison of linear resampling versus nearest resampling](<https://maplibre.org/maplibre-style-spec/assets/resampling.png>)

- `linear`: (Bi)linear filtering interpolates pixel values using the weighted average of the four closest original source pixels creating a smooth but blurry look when overscaled
- `nearest`: Nearest neighbor filtering interpolates pixel values using the nearest original source pixel creating a sharp but pixelated look when overscaled

| SDK Support | MapLibre GL JS | MapLibre Native<br>Android | MapLibre Native<br>iOS |
| --- | --- | --- | --- |
| basic functionality | 5.20.0 | ❌ ([\#4117](<https://github.com/maplibre/maplibre-native/issues/4117>)) | ❌ ([\#4117](<https://github.com/maplibre/maplibre-native/issues/4117>)) |
| [`global-state`](<https://maplibre.org/maplibre-style-spec/expressions/index.md#global-state>) expression | 5.6.0 | ❌ ([\#4117](<https://github.com/maplibre/maplibre-native/issues/4117>)) | ❌ ([\#4117](<https://github.com/maplibre/maplibre-native/issues/4117>)) |

### raster-resampling

*[Paint](<#paint>) property. Optional [enum](<https://maplibre.org/maplibre-style-spec/types/index.md#enum>). Possible values: `linear`, `nearest`. Defaults to `"linear"`.*

The resampling/interpolation method to use for overscaling, also known as texture magnification filter. It is advised to use the generic `resampling` paint property instead.

- `linear`: (Bi)linear filtering interpolates pixel values using the weighted average of the four closest original source pixels creating a smooth but blurry look when overscaled
- `nearest`: Nearest neighbor filtering interpolates pixel values using the nearest original source pixel creating a sharp but pixelated look when overscaled

| SDK Support | MapLibre GL JS | MapLibre Native<br>Android | MapLibre Native<br>iOS |
| --- | --- | --- | --- |
| basic functionality | 0.47.0 | 6.3.0 | 4.2.0 |
| [`global-state`](<https://maplibre.org/maplibre-style-spec/expressions/index.md#global-state>) expression | 5.6.0 | 13.7.1 | 7.0.0 |

### raster-fade-duration

*[Paint](<#paint>) property. Optional [number](<https://maplibre.org/maplibre-style-spec/types/index.md#number>) in range `[0, ∞)`. Units in milliseconds. Defaults to `300`. Supports [interpolate](<https://maplibre.org/maplibre-style-spec/expressions/index.md#interpolate>) expressions.*

Fade duration when a new tile is added, or when a video is started or its coordinates are updated.

| SDK Support | MapLibre GL JS | MapLibre Native<br>Android | MapLibre Native<br>iOS |
| --- | --- | --- | --- |
| basic functionality | 0.10.0 | 2.0.1 | 2.0.0 |
| [`global-state`](<https://maplibre.org/maplibre-style-spec/expressions/index.md#global-state>) expression | 5.6.0 | 13.7.1 | 7.0.0 |

## Hillshade

### visibility

*[Layout](<#layout>) property. Optional [enum](<https://maplibre.org/maplibre-style-spec/types/index.md#enum>). Possible values: `visible`, `none`. Defaults to `"visible"`.*

Whether this layer is displayed.

- `visible`: The layer is shown.
- `none`: The layer is not shown.

| SDK Support | MapLibre GL JS | MapLibre Native<br>Android | MapLibre Native<br>iOS |
| --- | --- | --- | --- |
| basic functionality | 0.43.0 | 6.0.0 | 4.0.0 |
| [`global-state`](<https://maplibre.org/maplibre-style-spec/expressions/index.md#global-state>) expression | 5.16.0 | 13.7.1 | 7.0.0 |

### hillshade-illumination-direction

*[Paint](<#paint>) property. Optional [numberArray](<https://maplibre.org/maplibre-style-spec/types/index.md#numberarray>) with value(s) in range `[0, 359]`. Defaults to `335`. Supports [interpolate](<https://maplibre.org/maplibre-style-spec/expressions/index.md#interpolate>) expressions.*

The direction of the light source(s) used to generate the hillshading with 0 as the top of the viewport if [`hillshade-illumination-anchor`](<https://maplibre.org/maplibre-style-spec/layers/index.md#hillshade-illumination-anchor>) is set to `viewport` and due north if `hillshade-illumination-anchor` is set to `map`. Only when [`hillshade-method`](<https://maplibre.org/maplibre-style-spec/layers/index.md#hillshade-method>) is set to `multidirectional` can you specify multiple light sources.

| SDK Support | MapLibre GL JS | MapLibre Native<br>Android | MapLibre Native<br>iOS |
| --- | --- | --- | --- |
| basic functionality | 0.43.0 | 6.0.0 | 4.0.0 |
| multidirectional | 5.5.0 | 13.0.0 | 6.24.0 |
| [`global-state`](<https://maplibre.org/maplibre-style-spec/expressions/index.md#global-state>) expression | 5.6.0 | 13.7.1 | 7.0.0 |

### hillshade-illumination-altitude

*[Paint](<#paint>) property. Optional [numberArray](<https://maplibre.org/maplibre-style-spec/types/index.md#numberarray>) with value(s) in range `[0, 90]`. Defaults to `45`. Supports [interpolate](<https://maplibre.org/maplibre-style-spec/expressions/index.md#interpolate>) expressions.*

The altitude of the light source(s) used to generate the hillshading with 0 as sunset and 90 as noon. Only when [`hillshade-method`](<https://maplibre.org/maplibre-style-spec/layers/index.md#hillshade-method>) is set to `multidirectional` can you specify multiple light sources.

| SDK Support | MapLibre GL JS | MapLibre Native<br>Android | MapLibre Native<br>iOS |
| --- | --- | --- | --- |
| basic functionality | 5.5.0 | 13.0.0 | 6.24.0 |
| multidirectional | 5.5.0 | 13.0.0 | 6.24.0 |
| [`global-state`](<https://maplibre.org/maplibre-style-spec/expressions/index.md#global-state>) expression | 5.6.0 | 13.7.1 | 7.0.0 |

### hillshade-illumination-anchor

*[Paint](<#paint>) property. Optional [enum](<https://maplibre.org/maplibre-style-spec/types/index.md#enum>). Possible values: `map`, `viewport`. Defaults to `"viewport"`.*

Direction of light source when map is rotated.

- `map`: The hillshade illumination is relative to the north direction.
- `viewport`: The hillshade illumination is relative to the top of the viewport.

| SDK Support | MapLibre GL JS | MapLibre Native<br>Android | MapLibre Native<br>iOS |
| --- | --- | --- | --- |
| basic functionality | 0.43.0 | 6.0.0 | 4.0.0 |
| [`global-state`](<https://maplibre.org/maplibre-style-spec/expressions/index.md#global-state>) expression | 5.6.0 | 13.7.1 | 7.0.0 |

### hillshade-exaggeration

*[Paint](<#paint>) property. Optional [number](<https://maplibre.org/maplibre-style-spec/types/index.md#number>) in range `[0, 1]`. Defaults to `0.5`. Supports [interpolate](<https://maplibre.org/maplibre-style-spec/expressions/index.md#interpolate>) expressions. [Transitionable](<https://maplibre.org/maplibre-style-spec/transition/index.md>).*

Intensity of the hillshade

| SDK Support | MapLibre GL JS | MapLibre Native<br>Android | MapLibre Native<br>iOS |
| --- | --- | --- | --- |
| basic functionality | 0.43.0 | 6.0.0 | 4.0.0 |
| [`global-state`](<https://maplibre.org/maplibre-style-spec/expressions/index.md#global-state>) expression | 5.6.0 | 13.7.1 | 7.0.0 |

### hillshade-shadow-color

*[Paint](<#paint>) property. Optional [colorArray](<https://maplibre.org/maplibre-style-spec/types/index.md#colorarray>). Defaults to `"#000000"`. Supports [interpolate](<https://maplibre.org/maplibre-style-spec/expressions/index.md#interpolate>) expressions. [Transitionable](<https://maplibre.org/maplibre-style-spec/transition/index.md>).*

The shading color of areas that face away from the light source(s). Only when [`hillshade-method`](<https://maplibre.org/maplibre-style-spec/layers/index.md#hillshade-method>) is set to `multidirectional` can you specify multiple light sources.

| SDK Support | MapLibre GL JS | MapLibre Native<br>Android | MapLibre Native<br>iOS |
| --- | --- | --- | --- |
| basic functionality | 0.43.0 | 6.0.0 | 4.0.0 |
| multidirectional | 5.5.0 | 13.0.0 | 6.24.0 |
| [`global-state`](<https://maplibre.org/maplibre-style-spec/expressions/index.md#global-state>) expression | 5.6.0 | 13.7.1 | 7.0.0 |

### hillshade-highlight-color

*[Paint](<#paint>) property. Optional [colorArray](<https://maplibre.org/maplibre-style-spec/types/index.md#colorarray>). Defaults to `"#FFFFFF"`. Supports [interpolate](<https://maplibre.org/maplibre-style-spec/expressions/index.md#interpolate>) expressions. [Transitionable](<https://maplibre.org/maplibre-style-spec/transition/index.md>).*

The shading color of areas that faces towards the light source(s). Only when [`hillshade-method`](<https://maplibre.org/maplibre-style-spec/layers/index.md#hillshade-method>) is set to `multidirectional` can you specify multiple light sources.

| SDK Support | MapLibre GL JS | MapLibre Native<br>Android | MapLibre Native<br>iOS |
| --- | --- | --- | --- |
| basic functionality | 0.43.0 | 6.0.0 | 4.0.0 |
| multidirectional | 5.5.0 | 13.0.0 | 6.24.0 |
| [`global-state`](<https://maplibre.org/maplibre-style-spec/expressions/index.md#global-state>) expression | 5.6.0 | 13.7.1 | 7.0.0 |

### hillshade-accent-color

*[Paint](<#paint>) property. Optional [color](<https://maplibre.org/maplibre-style-spec/types/index.md#color>). Defaults to `"#000000"`. Supports [interpolate](<https://maplibre.org/maplibre-style-spec/expressions/index.md#interpolate>) expressions. [Transitionable](<https://maplibre.org/maplibre-style-spec/transition/index.md>).*

The shading color used to accentuate rugged terrain like sharp cliffs and gorges.

| SDK Support | MapLibre GL JS | MapLibre Native<br>Android | MapLibre Native<br>iOS |
| --- | --- | --- | --- |
| basic functionality | 0.43.0 | 6.0.0 | 4.0.0 |
| [`global-state`](<https://maplibre.org/maplibre-style-spec/expressions/index.md#global-state>) expression | 5.6.0 | 13.7.1 | 7.0.0 |

### hillshade-method

*[Paint](<#paint>) property. Optional [enum](<https://maplibre.org/maplibre-style-spec/types/index.md#enum>). Possible values: `standard`, `basic`, `combined`, `igor`, `multidirectional`. Defaults to `"standard"`.*

The hillshade algorithm to use, one of `standard`, `basic`, `combined`, `igor`, or `multidirectional`. ![Visual comparison of standard, basic, igor, combined, and multidirectional hillshade-method](<https://maplibre.org/maplibre-style-spec/assets/hillshade_methods.png>)

- `standard`: The legacy hillshade method.
- `basic`: Basic hillshade. Uses a simple physics model where the reflected light intensity is proportional to the cosine of the angle between the incident light and the surface normal. Similar to GDAL's `gdaldem` default algorithm.
- `combined`: Hillshade algorithm whose intensity scales with slope. Similar to GDAL's `gdaldem` with `-combined` option.
- `igor`: Hillshade algorithm which tries to minimize effects on other map features beneath. Similar to GDAL's `gdaldem` with `-igor` option.
- `multidirectional`: Hillshade with multiple illumination directions. Uses the basic hillshade model with multiple independent light sources.

| SDK Support | MapLibre GL JS | MapLibre Native<br>Android | MapLibre Native<br>iOS |
| --- | --- | --- | --- |
| basic functionality | 5.5.0 | 13.0.0 | 6.24.0 |
| [`global-state`](<https://maplibre.org/maplibre-style-spec/expressions/index.md#global-state>) expression | 5.6.0 | 13.7.1 | 7.0.0 |

### resampling

*[Paint](<#paint>) property. Optional [enum](<https://maplibre.org/maplibre-style-spec/types/index.md#enum>). Possible values: `linear`, `nearest`. Defaults to `"linear"`.*

The resampling/interpolation method to use for overscaling, also known as texture magnification filter. ![Visual comparison of linear resampling versus nearest resampling](<https://maplibre.org/maplibre-style-spec/assets/resampling.png>)

- `linear`: (Bi)linear filtering interpolates pixel values using the weighted average of the four closest original source pixels creating a smooth but blurry look when overscaled
- `nearest`: Nearest neighbor filtering interpolates pixel values using the nearest original source pixel creating a sharp but pixelated look when overscaled

| SDK Support | MapLibre GL JS | MapLibre Native<br>Android | MapLibre Native<br>iOS |
| --- | --- | --- | --- |
| basic functionality | 5.20.0 | ❌ ([\#4117](<https://github.com/maplibre/maplibre-native/issues/4117>)) | ❌ ([\#4117](<https://github.com/maplibre/maplibre-native/issues/4117>)) |
| [`global-state`](<https://maplibre.org/maplibre-style-spec/expressions/index.md#global-state>) expression | 5.6.0 | ❌ ([\#4117](<https://github.com/maplibre/maplibre-native/issues/4117>)) | ❌ ([\#4117](<https://github.com/maplibre/maplibre-native/issues/4117>)) |

## Color-relief

### visibility

*[Layout](<#layout>) property. Optional [enum](<https://maplibre.org/maplibre-style-spec/types/index.md#enum>). Possible values: `visible`, `none`. Defaults to `"visible"`.*

Whether this layer is displayed.

- `visible`: The layer is shown.
- `none`: The layer is not shown.

| SDK Support | MapLibre GL JS | MapLibre Native<br>Android | MapLibre Native<br>iOS |
| --- | --- | --- | --- |
| basic functionality | 5.6.0 | 13.0.0 | 6.24.0 |
| [`global-state`](<https://maplibre.org/maplibre-style-spec/expressions/index.md#global-state>) expression | 5.16.0 | 13.7.1 | 7.0.0 |

### color-relief-opacity

*[Paint](<#paint>) property. Optional [number](<https://maplibre.org/maplibre-style-spec/types/index.md#number>) in range `[0, 1]`. Defaults to `1`. Supports [interpolate](<https://maplibre.org/maplibre-style-spec/expressions/index.md#interpolate>) expressions. [Transitionable](<https://maplibre.org/maplibre-style-spec/transition/index.md>).*

The opacity at which the color-relief will be drawn.

| SDK Support | MapLibre GL JS | MapLibre Native<br>Android | MapLibre Native<br>iOS |
| --- | --- | --- | --- |
| basic functionality | 5.6.0 | 13.0.0 | 6.24.0 |
| [`global-state`](<https://maplibre.org/maplibre-style-spec/expressions/index.md#global-state>) expression | 5.6.0 | 13.7.1 | 7.0.0 |

### color-relief-color

*[Paint](<#paint>) property. Optional [color](<https://maplibre.org/maplibre-style-spec/types/index.md#color>). Supports [interpolate](<https://maplibre.org/maplibre-style-spec/expressions/index.md#interpolate>) expressions.*

Defines the color of each pixel based on its elevation. Should be an expression that uses the [`elevation`](<https://maplibre.org/maplibre-style-spec/expressions/index.md#elevation>) expression as input.

```json
"color-relief-color": [
    "interpolate",
    ["linear"],
    ["elevation"],
    0,
    "black",
    8849,
    "white"
]
```

| SDK Support | MapLibre GL JS | MapLibre Native<br>Android | MapLibre Native<br>iOS |
| --- | --- | --- | --- |
| basic functionality | 5.6.0 | 13.0.0 | 6.24.0 |
| data-driven styling | Not supported yet | Not supported yet | Not supported yet |
| [`global-state`](<https://maplibre.org/maplibre-style-spec/expressions/index.md#global-state>) expression | 5.6.0 | 13.7.1 | 7.0.0 |

### resampling

*[Paint](<#paint>) property. Optional [enum](<https://maplibre.org/maplibre-style-spec/types/index.md#enum>). Possible values: `linear`, `nearest`. Defaults to `"linear"`.*

The resampling/interpolation method to use for overscaling, also known as texture magnification filter. ![Visual comparison of linear resampling versus nearest resampling](<https://maplibre.org/maplibre-style-spec/assets/resampling.png>)

- `linear`: (Bi)linear filtering interpolates pixel values using the weighted average of the four closest original source pixels creating a smooth but blurry look when overscaled
- `nearest`: Nearest neighbor filtering interpolates pixel values using the nearest original source pixel creating a sharp but pixelated look when overscaled

| SDK Support | MapLibre GL JS | MapLibre Native<br>Android | MapLibre Native<br>iOS |
| --- | --- | --- | --- |
| basic functionality | 5.20.0 | ❌ ([\#4117](<https://github.com/maplibre/maplibre-native/issues/4117>)) | ❌ ([\#4117](<https://github.com/maplibre/maplibre-native/issues/4117>)) |
| [`global-state`](<https://maplibre.org/maplibre-style-spec/expressions/index.md#global-state>) expression | 5.6.0 | ❌ ([\#4117](<https://github.com/maplibre/maplibre-native/issues/4117>)) | ❌ ([\#4117](<https://github.com/maplibre/maplibre-native/issues/4117>)) |
