##  fill-extrusion  â

A ` fill-extrusion ` style layer renders one or more filled (and optionally
stroked) extruded (3D) polygons on a map. You can use a fill-extrusion layer
to configure the extrusion and visual appearance of polygon or multipolygon
features.

This map uses an external dataset to provide data-driven values for the [ `
fill-extrusion-height ` ](/style-spec/reference/layers/#paint-fill-extrusion-
fill-extrusion-height) paint property of various [ country polygons
](https://blog.mapbox.com/high-resolution-administrative-country-polygons-in-
studio-57cf4abb0768) in a fill-extrusion layer.

###  fill-extrusion-ambient-occlusion-ground-attenuation  â

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

Provides a control to futher fine-tune the look of the ambient occlusion on
the ground beneath the extruded buildings. Lower values give the effect a more
solid look while higher values make it smoother.

SDK Support  |  Mapbox GL JS  |  Android SDK  |  iOS SDK   
---|---|---|---  
basic functionality  |  >= 3.0.0  |  >= 11.0.0  |  >= 11.0.0   
  
###  fill-extrusion-ambient-occlusion-ground-radius  â

[ Paint ](/style-spec/reference/layers/#paint-property) property.  Optional  [
number ](/style-spec/reference/types/#number) greater than or equal to ` 0 ` .
Defaults to ` 3 ` .  _Requires_ lights  .  Supports  [ smooth-ramp  `
interpolate ` ](/style-spec/reference/expressions/#interpolate) expressions.
opacity  Transitionable.

The extent of the ambient occlusion effect on the ground beneath the extruded
buildings in meters.

SDK Support  |  Mapbox GL JS  |  Android SDK  |  iOS SDK   
---|---|---|---  
basic functionality  |  >= 3.0.0  |  >= 11.0.0  |  >= 11.0.0   
  
###  fill-extrusion-ambient-occlusion-wall-radius  â

[ Paint ](/style-spec/reference/layers/#paint-property) property.  Optional  [
number ](/style-spec/reference/types/#number) greater than or equal to ` 0 ` .
Defaults to ` 3 ` .  _Requires_ lights  .  _Requires_ fill-extrusion-edge-
radius  .  Supports  [ smooth-ramp  ` interpolate ` ](/style-
spec/reference/expressions/#interpolate) expressions.  opacity
Transitionable.

Shades area near ground and concave angles between walls where the radius
defines only vertical impact. Default value 3.0 corresponds to height of one
floor and brings the most plausible results for buildings.

SDK Support  |  Mapbox GL JS  |  Android SDK  |  iOS SDK   
---|---|---|---  
basic functionality  |  >= 3.0.0  |  >= 11.0.0  |  >= 11.0.0   
  
###  fill-extrusion-base  â

[ Paint ](/style-spec/reference/layers/#paint-property) property.  Optional  [
number ](/style-spec/reference/types/#number) greater than or equal to ` 0 ` .
Units in  meters  .  Defaults to ` 0 ` .  _Requires_ fill-extrusion-height  .
Supports  _[ combine  ` feature-state ` ](/style-
spec/reference/expressions/#feature-state) _ and [ smooth-ramp  ` interpolate
` ](/style-spec/reference/expressions/#interpolate) expressions.  opacity
Transitionable.

The height with which to extrude the base of this layer. Must be less than or
equal to ` fill-extrusion-height ` .

SDK Support  |  Mapbox GL JS  |  Android SDK  |  iOS SDK   
---|---|---|---  
basic functionality  |  >= 0.27.0  |  >= 5.1.0  |  >= 3.6.0   
data-driven styling  |  >= 0.27.0  |  >= 5.1.0  |  >= 3.6.0   
  
###  fill-extrusion-color  â

[ Paint ](/style-spec/reference/layers/#paint-property) property.  Optional  [
color ](/style-spec/reference/types/#color) .  Defaults to ` "#000000" ` .
_Disabled by_ fill-extrusion-pattern  .  Supports  _[ combine  ` feature-state
` ](/style-spec/reference/expressions/#feature-state) _ and [ smooth-ramp  `
interpolate ` ](/style-spec/reference/expressions/#interpolat