Fill Extrusion Layer
An extruded (3D) polygon.
See also
Parameters
the ID of the layer
the ID of the source
Constructors
Types
Functions
Bind the layer to the Style.
Bind the layer to the map controller.
Controls the intensity of shading near ground and concave angles between walls. Default value 0.0 disables ambient occlusion and values around 0.3 provide the most plausible results for buildings.
Set the FillExtrusionAmbientOcclusionIntensity property transition options
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.
Set the FillExtrusionAmbientOcclusionRadius property transition options
The height with which to extrude the base of this layer. Must be less than or equal to fill-extrusion-height
.
Set the FillExtrusionBase property transition options
DSL for fillExtrusionBaseTransition.
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
to set layer opacity.
Set the FillExtrusionColor property transition options
DSL for fillExtrusionColorTransition.
The height with which to extrude this layer.
Set the FillExtrusionHeight property transition options
DSL for fillExtrusionHeightTransition.
The opacity of the entire fill extrusion layer. This is rendered on a per-layer, not per-feature, basis, and data-driven styling is not available.
Set the FillExtrusionOpacity property transition options
DSL for fillExtrusionOpacityTransition.
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.
Set the FillExtrusionPattern property transition options
DSL for fillExtrusionPatternTransition.
The geometry's offset. Values are x, y where negatives indicate left and up (on the flat plane), respectively.
Controls the frame of reference for fill-extrusion-translate
.
Set the FillExtrusionTranslate property transition options
DSL for fillExtrusionTranslateTransition.
Whether to apply a vertical gradient to the sides of a fill-extrusion layer. If true, sides will be shaded slightly darker farther down.
A filter is a property at the layer level that determines which features should be rendered in a style layer.
The maximum zoom level for the layer. At zoom levels equal to or greater than the maxzoom, the layer will be hidden.
The minimum zoom level for the layer. At zoom levels less than the minzoom, the layer will be hidden.
A source layer is an individual layer of data within a vector source. A vector source can have multiple source layers.
Whether this layer is displayed.