-
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 circleSortKey: Value<Double>?
-
Amount to blur the circle. 1 blurs the circle such that only the centerpoint is full opacity.
Declaration
Swift
public var circleBlur: Value<Double>?
-
Transition options for
circleBlur
.Declaration
Swift
public var circleBlurTransition: StyleTransition?
-
The fill color of the circle.
Declaration
Swift
public var circleColor: Value<StyleColor>?
-
Transition options for
circleColor
.Declaration
Swift
public var circleColorTransition: 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 circleEmissiveStrength: Value<Double>?
-
Transition options for
circleEmissiveStrength
.Declaration
Swift
public var circleEmissiveStrengthTransition: StyleTransition?
-
The opacity at which the circle will be drawn.
Declaration
Swift
public var circleOpacity: Value<Double>?
-
Transition options for
circleOpacity
.Declaration
Swift
public var circleOpacityTransition: StyleTransition?
-
Orientation of circle when map is pitched.
Declaration
Swift
public var circlePitchAlignment: Value<CirclePitchAlignment>?
-
Controls the scaling behavior of the circle when the map is pitched.
Declaration
Swift
public var circlePitchScale: Value<CirclePitchScale>?
-
Circle radius.
Declaration
Swift
public var circleRadius: Value<Double>?
-
Transition options for
circleRadius
.Declaration
Swift
public var circleRadiusTransition: StyleTransition?
-
The stroke color of the circle.
Declaration
Swift
public var circleStrokeColor: Value<StyleColor>?
-
Transition options for
circleStrokeColor
.Declaration
Swift
public var circleStrokeColorTransition: StyleTransition?
-
The opacity of the circle’s stroke.
Declaration
Swift
public var circleStrokeOpacity: Value<Double>?
-
Transition options for
circleStrokeOpacity
.Declaration
Swift
public var circleStrokeOpacityTransition: StyleTransition?
-
The width of the circle’s stroke. Strokes are placed outside of the
circle-radius
.Declaration
Swift
public var circleStrokeWidth: Value<Double>?
-
Transition options for
circleStrokeWidth
.Declaration
Swift
public var circleStrokeWidthTransition: StyleTransition?
-
The geometry’s offset. Values are [x, y] where negatives indicate left and up, respectively.
Declaration
Swift
public var circleTranslate: Value<[Double]>?
-
Transition options for
circleTranslate
.Declaration
Swift
public var circleTranslateTransition: StyleTransition?
-
Controls the frame of reference for
circle-translate
.Declaration
Swift
public var circleTranslateAnchor: Value<CircleTranslateAnchor>?
-
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