Layer

public class Layer

The Layer protocol that represents map layer.

Public

  • id

    Returns the ID (a human-readable name) of the layer.

    Declaration

    Swift

    public let id: String
  • Type of the layer.

    Declaration

    Swift

    public let type: LayerType?
  • Layer source states which data the map should display.

    Declaration

    Swift

    public let source: String?
  • Returns the ID (a human-readable name) of the source of data for this layer.

    Declaration

    Swift

    public let sourceLayer: String?
  • Arbitrary property, used to carry extra informatio

    Declaration

    Swift

    public let metadata: Metadata?
  • Returns the visibility of this layer.

    Declaration

    Swift

    public var isVisible: Bool { get set }