FillLayer
public struct FillLayer : Layer
A filled polygon with an optional stroked border.
See also
Mapbox Style Specification-
Unique layer name
Declaration
Swift
public var id: String
-
Rendering type of this layer.
Declaration
Swift
public let type: LayerType
-
An expression specifying conditions on source features. Only features that match the filter are displayed.
Declaration
Swift
public var filter: Expression?
-
Name of a source description to be used for this layer. Required for all layer types except
BackgroundLayer
,SkyLayer
, andLocationIndicatorLayer
.Declaration
Swift
public var source: String?
-
Layer to use from a vector tile source.
Required for vector tile sources. Prohibited for all other source types, including GeoJSON sources.
Declaration
Swift
public var sourceLayer: String?
-
The slot this layer is assigned to. If specified, and a slot with that name exists, it will be placed at that position in the layer order.
Declaration
Swift
public var slot: String?
-
The minimum zoom level for the layer. At zoom levels less than the minzoom, the layer will be hidden.
Declaration
Swift
public var minZoom: Double?
-
The maximum zoom level for the layer. At zoom levels equal to or greater than the maxzoom, the layer will be hidden.
Declaration
Swift
public var maxZoom: Double?
-
Whether this layer is displayed.
Declaration
Swift
public var visibility: Value<Visibility>
-
Sorts features in ascending order based on this value. Features with a higher sort key will appear above features with a lower sort key.
Declaration
Swift
public var fillSortKey: Value<Double>?
-
Whether or not the fill should be antialiased.
Declaration
Swift
public var fillAntialias: Value<Bool>?
-
The color of the filled part of this layer. This color can be specified as
rgba
with an alpha component and the color’s opacity will not affect the opacity of the 1px stroke, if it is used.Declaration
Swift
public var fillColor: Value<StyleColor>?
-
Transition options for
fillColor
.Declaration
Swift
public var fillColorTransition: StyleTransition?
-
Controls the intensity of light emitted on the source features. This property works only with 3D light, i.e. when
lights
root property is defined.Declaration
Swift
public var fillEmissiveStrength: Value<Double>?
-
Transition options for
fillEmissiveStrength
.Declaration
Swift
public var fillEmissiveStrengthTransition: StyleTransition?
-
The opacity of the entire fill layer. In contrast to the
fill-color
, this value will also affect the 1px stroke around the fill, if the stroke is used.Declaration
Swift
public var fillOpacity: Value<Double>?
-
Transition options for
fillOpacity
.Declaration
Swift
public var fillOpacityTransition: StyleTransition?
-
The outline color of the fill. Matches the value of
fill-color
if unspecified.Declaration
Swift
public var fillOutlineColor: Value<StyleColor>?
-
Transition options for
fillOutlineColor
.Declaration
Swift
public var fillOutlineColorTransition: StyleTransition?
-
Name of image in sprite to use for drawing image 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 fillPattern: Value<ResolvedImage>?
-
The geometry’s offset. Values are [x, y] where negatives indicate left and up, respectively.
Declaration
Swift
public var fillTranslate: Value<[Double]>?
-
Transition options for
fillTranslate
.Declaration
Swift
public var fillTranslateTransition: StyleTransition?
-
Controls the frame of reference for
fill-translate
.Declaration
Swift
public var fillTranslateAnchor: Value<FillTranslateAnchor>?
-
Undocumented
Declaration
Swift
public init(id: String, source: String)
-
Declaration
Swift
public func encode(to encoder: Encoder) throws
-
Declaration
Swift
public init(from decoder: Decoder) throws