FillExtrusionLayer
public struct FillExtrusionLayer : Layer
An extruded (3D) polygon.
See also
Mapbox Style Specification-
Declaration
Swift
public var id: String
-
Declaration
Swift
public let type: LayerType
-
Declaration
Swift
public var filter: Expression?
-
Declaration
Swift
public var source: String?
-
Declaration
Swift
public var sourceLayer: String?
-
Declaration
Swift
public var minZoom: Double?
-
Declaration
Swift
public var maxZoom: Double?
-
Whether this layer is displayed.
Declaration
Swift
public var visibility: Value<Visibility>?
-
Controls the intensity of ambient occlusion (AO) shading. Current AO implementation is a low-cost best-effort approach that shades area 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.
Declaration
Swift
public var fillExtrusionAmbientOcclusionIntensity: Value<Double>?
-
Transition options for
fillExtrusionAmbientOcclusionIntensity
.Declaration
Swift
public var fillExtrusionAmbientOcclusionIntensityTransition: StyleTransition?
-
The radius of ambient occlusion (AO) shading, in meters. Current AO implementation is a low-cost best-effort approach that shades area near ground and concave angles between walls where the radius defines only vertical impact. Default value 3.0 corresponds to hight of one floor and brings the most plausible results for buildings.
Declaration
Swift
public var fillExtrusionAmbientOcclusionRadius: Value<Double>?
-
Transition options for
fillExtrusionAmbientOcclusionRadius
.Declaration
Swift
public var fillExtrusionAmbientOcclusionRadiusTransition: StyleTransition?
-
The height with which to extrude the base of this layer. Must be less than or equal to
fill-extrusion-height
.Declaration
Swift
public var fillExtrusionBase: Value<Double>?
-
Transition options for
fillExtrusionBase
.Declaration
Swift
public var fillExtrusionBaseTransition: StyleTransition?
-
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 asrgba
with an alpha component, the alpha component will be ignored; usefill-extrusion-opacity
to set layer opacity.Declaration
Swift
public var fillExtrusionColor: Value<StyleColor>?
-
Transition options for
fillExtrusionColor
.Declaration
Swift
public var fillExtrusionColorTransition: StyleTransition?
-
The height with which to extrude this layer.
Declaration
Swift
public var fillExtrusionHeight: Value<Double>?
-
Transition options for
fillExtrusionHeight
.Declaration
Swift
public var fillExtrusionHeightTransition: StyleTransition?
-
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.
Declaration
Swift
public var fillExtrusionOpacity: Value<Double>?
-
Transition options for
fillExtrusionOpacity
.Declaration
Swift
public var fillExtrusionOpacityTransition: StyleTransition?
-
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.
Declaration
Swift
public var fillExtrusionPattern: Value<ResolvedImage>?
-
Transition options for
fillExtrusionPattern
.Declaration
Swift
public var fillExtrusionPatternTransition: StyleTransition?
-
The geometry’s offset. Values are [x, y] where negatives indicate left and up (on the flat plane), respectively.
Declaration
Swift
public var fillExtrusionTranslate: Value<[Double]>?
-
Transition options for
fillExtrusionTranslate
.Declaration
Swift
public var fillExtrusionTranslateTransition: StyleTransition?
-
Controls the frame of reference for
fill-extrusion-translate
.Declaration
Swift
public var fillExtrusionTranslateAnchor: Value<FillExtrusionTranslateAnchor>?
-
Whether to apply a vertical gradient to the sides of a fill-extrusion layer. If true, sides will be shaded slightly darker farther down.
Declaration
Swift
public var fillExtrusionVerticalGradient: Value<Bool>?
-
Undocumented
Declaration
Swift
public init(id: String)
-
Declaration
Swift
public func encode(to encoder: Encoder) throws
-
Declaration
Swift
public init(from decoder: Decoder) throws