RasterLayer
public struct RasterLayer : Layer
Raster map textures such as satellite imagery.
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>
-
Increase or reduce the brightness of the image. The value is the maximum brightness.
Declaration
Swift
public var rasterBrightnessMax: Value<Double>?
-
Transition options for
rasterBrightnessMax
.Declaration
Swift
public var rasterBrightnessMaxTransition: StyleTransition?
-
Increase or reduce the brightness of the image. The value is the minimum brightness.
Declaration
Swift
public var rasterBrightnessMin: Value<Double>?
-
Transition options for
rasterBrightnessMin
.Declaration
Swift
public var rasterBrightnessMinTransition: StyleTransition?
-
Defines a color map by which to colorize a raster layer, parameterized by the
["raster-value"]
expression and evaluated at 1024 uniformly spaced steps over the range specified byraster-color-range
.Declaration
Swift
public var rasterColor: Value<StyleColor>?
-
When
raster-color
is active, specifies the combination of source RGB channels used to compute the raster value. Computed using the equationmix.r * src.r + mix.g * src.g + mix.b * src.b + mix.a
. The first three components specify the mix of source red, green, and blue channels, respectively. The fourth component serves as a constant offset and is not multipled by source alpha. Source alpha is instead carried through and applied as opacity to the colorized result. Default value corresponds to RGB luminosity.Declaration
Swift
public var rasterColorMix: Value<[Double]>?
-
Transition options for
rasterColorMix
.Declaration
Swift
public var rasterColorMixTransition: StyleTransition?
-
When
raster-color
is active, specifies the range over whichraster-color
is tabulated. Units correspond to the computed raster value viaraster-color-mix
.Declaration
Swift
public var rasterColorRange: Value<[Double]>?
-
Transition options for
rasterColorRange
.Declaration
Swift
public var rasterColorRangeTransition: StyleTransition?
-
Increase or reduce the contrast of the image.
Declaration
Swift
public var rasterContrast: Value<Double>?
-
Transition options for
rasterContrast
.Declaration
Swift
public var rasterContrastTransition: StyleTransition?
-
Fade duration when a new tile is added.
Declaration
Swift
public var rasterFadeDuration: Value<Double>?
-
Rotates hues around the color wheel.
Declaration
Swift
public var rasterHueRotate: Value<Double>?
-
Transition options for
rasterHueRotate
.Declaration
Swift
public var rasterHueRotateTransition: StyleTransition?
-
The opacity at which the image will be drawn.
Declaration
Swift
public var rasterOpacity: Value<Double>?
-
Transition options for
rasterOpacity
.Declaration
Swift
public var rasterOpacityTransition: StyleTransition?
-
The resampling/interpolation method to use for overscaling, also known as texture magnification filter
Declaration
Swift
public var rasterResampling: Value<RasterResampling>?
-
Increase or reduce the saturation of the image.
Declaration
Swift
public var rasterSaturation: Value<Double>?
-
Transition options for
rasterSaturation
.Declaration
Swift
public var rasterSaturationTransition: StyleTransition?
-
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