LayerType
public struct LayerType : ExpressibleByStringLiteral, RawRepresentable, Codable, Hashable
Struct of supported Layer rendering types
-
The raw value of the layer type.
Declaration
Swift
public let rawValue: String -
A filled polygon with an optional stroked border.
Declaration
Swift
public static let fill: LayerType -
A stroked line.
Declaration
Swift
public static let line: LayerType -
An icon or a text label.
Declaration
Swift
public static let symbol: LayerType -
A filled circle.
Declaration
Swift
public static let circle: LayerType -
A heatmap.
Declaration
Swift
public static let heatmap: LayerType -
An extruded (3D) polygon.
Declaration
Swift
public static let fillExtrusion: LayerType -
Raster map textures such as satellite imagery.
Declaration
Swift
public static let raster: LayerType -
Client-side hillshading visualization based on DEM data. Currently, the implementation only supports Mapbox Terrain RGB and Mapzen Terrarium tiles.
Declaration
Swift
public static let hillshade: LayerType -
The background color or pattern of the map.
Declaration
Swift
public static let background: LayerType -
Layer representing the location indicator
Declaration
Swift
public static let locationIndicator: LayerType -
Layer representing the sky
Declaration
Swift
public static let sky: LayerType -
Layer used for a 3D model
Declaration
Swift
@_documentation(visibility: public) @_spi(Experimental) public static let model: LayerType -
Layer with custom rendering implementation (
CustomLayerHost)See also
CustomLayerDeclaration
Swift
public static let custom: LayerType -
Declaration
Swift
public init(stringLiteral type: String) -
Declaration
Swift
public init(rawValue: String) -
The associated Swift struct type
Declaration
Swift
public var layerType: Layer.Type? { get }
LayerType Structure Reference