FillLayer

public struct FillLayer : Layer

A filled polygon with an optional stroked border.

@see The online documentation

  • id

    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>?
  • 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?
  • 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>?
  • Transition options for fillPattern.

    Declaration

    Swift

    public var fillPatternTransition: StyleTransition?
  • 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)
  • Declaration

    Swift

    public func encode(to encoder: Encoder) throws
  • Declaration

    Swift

    public init(from decoder: Decoder) throws