-
Unique layer name
Declaration
Swift
var id: String { get set }
-
Rendering type of this layer.
Declaration
Swift
var type: LayerType { get }
-
An expression specifying conditions on source features. Only features that match the filter are displayed.
Declaration
Swift
var filter: Expression? { get set }
-
Name of a source description to be used for this layer. Required for all layer types except background.
Declaration
Swift
var source: String? { get set }
-
Layer to use from a vector tile source. Required for vector tile sources. Prohibited for all other source types, including GeoJSON sources.
Declaration
Swift
var sourceLayer: String? { get set }
-
The minimum zoom level for the layer. At zoom levels less than the minzoom, the layer will be hidden.
Declaration
Swift
var minZoom: Double? { get set }
-
The maximum zoom level for the layer. At zoom levels equal to or greater than the maxzoom, the layer will be hidden.
Declaration
Swift
var maxZoom: Double? { get set }
-
init(jsonObject:)
Extension methodInitializes a Layer given a JSON dictionary
Throws
Errors occurring during decodingDeclaration
Swift
public init(jsonObject: [String : Any]) throws