##  raster  â

A ` raster ` style layer renders raster tiles on a map. You can use a raster
layer to configure the color parameters of raster tiles.

This [ interactive SWIR imagery map by Maxar ](https://blog.maxar.com/news-
events/2020/maxar-and-mapbox-release-interactive-swir-imagery-map-of-
california-wildfires?utm_source=mapbox&utm_medium=blog&utm_campaign=ca-
wildfires-2020-map) uses the [ ` visibility ` ](/style-
spec/reference/layers/#layout-raster-visibility) layout property to show or
hide raster layers with shortwave infrared satellite imagery of California
wildfires.

###  raster-array-band  â

[ Paint ](/style-spec/reference/layers/#paint-property) property.  Optional  [
string ](/style-spec/reference/types/#string) .  _Requires_ source  to be  `
"raster-array" ` .

Displayed band of raster array source layer. Defaults to the first band if not
set.

    
    
    "band-name"  
    

clipboard

SDK Support  |  Mapbox GL JS  |  Android SDK  |  iOS SDK   
---|---|---|---  
basic functionality  |  >= 3.1.0  |  >= 11.1.0  |  >= 11.1.0   
  
###  raster-brightness-max  â

[ Paint ](/style-spec/reference/layers/#paint-property) property.  Optional  [
number ](/style-spec/reference/types/#number) between ` 0 ` and ` 1 `
inclusive  .  Defaults to ` 1 ` .  Supports  [ smooth-ramp  ` interpolate `
](/style-spec/reference/expressions/#interpolate) expressions.  opacity
Transitionable.

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

SDK Support  |  Mapbox GL JS  |  Android SDK  |  iOS SDK   
---|---|---|---  
basic functionality  |  >= 0.10.0  |  >= 2.0.1  |  >= 2.0.0   
  
###  raster-brightness-min  â

[ Paint ](/style-spec/reference/layers/#paint-property) property.  Optional  [
number ](/style-spec/reference/types/#number) between ` 0 ` and ` 1 `
inclusive  .  Defaults to ` 0 ` .  Supports  [ smooth-ramp  ` interpolate `
](/style-spec/reference/expressions/#interpolate) expressions.  opacity
Transitionable.

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

SDK Support  |  Mapbox GL JS  |  Android SDK  |  iOS SDK   
---|---|---|---  
basic functionality  |  >= 0.10.0  |  >= 2.0.1  |  >= 2.0.0   
  
###  raster-color  â

[ Paint ](/style-spec/reference/layers/#paint-property) property.  Optional  [
color ](/style-spec/reference/types/#color) .  Supports  [ smooth-ramp  `
interpolate ` ](/style-spec/reference/expressions/#interpolate) expressions.

Defines a color map by which to colorize a raster layer, parameterized by the
` ["raster-value"] ` expression and evaluated at 256 uniformly spaced steps
over the range specified by ` raster-color-range ` .

SDK Support  |  Mapbox GL JS  |  Android SDK  |  iOS SDK   
---|---|---|---  
basic functionality  |  >= 3.0.0  |  >= 11.0.0  |  >= 11.0.0   
data-driven styling  |  Not yet supported  |  Not yet supported  |  Not yet supported   
  
###  raster-color-mix  â

[ Paint ](/style-spec/reference/layers/#paint-property) property.  Optional  [
array ](/style-spec/reference/types/#array) of  [ number  s ](/style-
spec/reference/types/#number) .  Defaults to ` [0.2126,0.7152,0.0722,0] ` .
_Requires_ raster-color  .  Supports  [ smooth-ramp  ` interpolate ` ](/style-
spec/reference/expressions/#interpolate) expressions.  opacity
Transitionable.

When ` raster-color ` is active, specifies the combination of source RGB
channels used to compute the raster value. Computed using the equation ` mix.r
* src.r + mix.g * src.g + mix.b * src.b + mix.a ` . The first three components
specify the mix of source red, green, and blue channels, respectively. The
fourth component serves as a constant offset and is _not_ multipled by source
alpha. Source alpha is instead carried through and applied as opacity to the
colorized result. Default value corresponds to RGB luminosity.

    
    
    [  
      0.2126,  
      0.7152,  
      0.0722,  
      0  
    ]  
    

clipboard

SDK Support  |  Mapbox GL JS  |  Android S