SourceType
public struct SourceType : ExpressibleByStringLiteral, RawRepresentable, Codable, Hashable
Struct of supported Source Types Docs : https://docs.mapbox.com/mapbox-gl-js/style-spec/sources/
-
The raw value of the source type.
Declaration
Swift
public let rawValue: String
-
A vector tile source.
Declaration
Swift
public static let vector: SourceType
-
A raster tile source.
Declaration
Swift
public static let raster: SourceType
-
A raster DEM source.
Declaration
Swift
public static let rasterDem: SourceType
-
A GeoJSON source.
Declaration
Swift
public static let geoJson: SourceType
-
An image source.
Declaration
Swift
public static let image: SourceType
-
A model source.
Declaration
Swift
public static let model: SourceType
-
Declaration
Swift
public init(stringLiteral type: String)
-
Declaration
Swift
public init(rawValue: String)
-
The associated Swift struct type
Declaration
Swift
public var sourceType: Source.Type? { get }