Fill Extrusion Layer State
The state holder for FillExtrusionLayer's layer properties.
See also
Constructors
Construct an default FillExtrusionLayerState.
Properties
Defines the transition of fillExtrusionAmbientOcclusionGroundAttenuation. Default value: 0.69. Value range: 0, 1
Defines the transition of fillExtrusionAmbientOcclusionGroundRadius. Default value: 3. Minimum value: 0.
Defines the transition of fillExtrusionAmbientOcclusionIntensity. Default value: 0. Value range: 0, 1
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. This property works only with legacy light. When 3D lights are enabled fill-extrusion-ambient-occlusion-wall-radius
and fill-extrusion-ambient-occlusion-ground-radius
are used instead. Default value: 3. Minimum value: 0.
Defines the transition of fillExtrusionAmbientOcclusionRadius. Default value: 3. Minimum value: 0.
Defines the transition of fillExtrusionAmbientOcclusionWallRadius. Default value: 3. Minimum value: 0.
Defines the transition of fillExtrusionBase. Default value: 0. Minimum value: 0.
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. Default value: "#000000".
Defines the transition of fillExtrusionColor. Default value: "#000000".
This parameter defines the range for the fade-out effect before an automatic content cutoff on pitched map views. Fade out is implemented by scaling down and removing buildings in the fade range in a staggered fashion. Opacity is not changed. The fade range is expressed in relation to the height of the map view. A value of 1.0 indicates that the content is faded to the same extent as the map's height in pixels, while a value close to zero represents a sharp cutoff. When the value is set to 0.0, the cutoff is completely disabled. Note: The property has no effect on the map if terrain is enabled. Default value: 0. Value range: 0, 1
Defines the transition of fillExtrusionEmissiveStrength. Default value: 0. Minimum value: 0.
Defines the transition of fillExtrusionFloodLightColor. Default value: "#ffffff".
Defines the transition of fillExtrusionFloodLightGroundAttenuation. Default value: 0.69. Value range: 0, 1
Defines the transition of fillExtrusionFloodLightGroundRadius. Default value: 0.
Defines the transition of fillExtrusionFloodLightIntensity. Default value: 0. Value range: 0, 1
Defines the transition of fillExtrusionFloodLightWallRadius. Default value: 0. Minimum value: 0.
Defines the transition of fillExtrusionHeight. Default value: 0. Minimum value: 0.
Defines the transition of fillExtrusionOpacity. Default value: 1. Value range: 0, 1
Defines the transition of fillExtrusionTranslate. Default value: 0,0.
Defines the transition of fillExtrusionVerticalScale. Default value: 1. Minimum value: 0.
An 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", ...]
expression is not supported in filter expressions. The ["pitch"]
and ["distance-from-center"]
expressions are supported only for filter expressions on the symbol layer.