MTLayer

public protocol MTLayer : AnyObject, MTMapViewContent, Sendable

Protocol requirements for all types of Layers.

  • Unique id of the layer.

    Declaration

    Swift

    var identifier: String { get set }
  • Type of the layer.

    Declaration

    Swift

    var type: MTLayerType { get }
  • Identifier of the source.

    Declaration

    Swift

    var sourceIdentifier: String { get set }
  • Max zoom of the layer.

    Declaration

    Swift

    var maxZoom: Double? { get set }
  • Min zoom of the layer.

    Declaration

    Swift

    var minZoom: Double? { get set }
  • Identifier of the source (main) layer to use.

    Declaration

    Swift

    var sourceLayer: String? { get set }