CustomLayer

public struct CustomLayer : Layer

Layer with custom rendering implementation

With a power of CustomLayerHost you can implement your own Metal rendering behaviour and manipulate layer as a usual one.

  • id

    Declaration

    Swift

    public var id: String
  • Declaration

    Swift

    public let type: LayerType
  • Declaration

    Swift

    public var slot: String?
  • Declaration

    Swift

    public var minZoom: Double?
  • Declaration

    Swift

    public var maxZoom: Double?
  • Declaration

    Swift

    public var visibility: Value<Visibility>
  • Custom Metal rendering providing API for arbitrary metal operations on top of the MapboxMap

    Declaration

    Swift

    public var renderer: CustomLayerHost
  • Undocumented

    Declaration

    Swift

    public init(
        id: String,
        renderer: CustomLayerHost,
        slot: String? = nil,
        minZoom: Double? = nil,
        maxZoom: Double? = nil,
        visibility: Value<Visibility> = .constant(.visible)
    )
  • Declaration

    Swift

    public init(from decoder: Decoder) throws
  • Declaration

    Swift

    public func encode(to encoder: Encoder) throws