MTAnnotation

public protocol MTAnnotation : Sendable

Protocol requirements for all annotation objects.

  • Unique id.

    Declaration

    Swift

    var identifier: String { get }
  • Geographical coordinates.

    Declaration

    Swift

    var coordinates: CLLocationCoordinate2D { get }
  • setCoordinates(_:in:) Asynchronous

    Sets the coordinates.

    Declaration

    Swift

    func setCoordinates(_ coordinates: CLLocationCoordinate2D, in mapView: MTMapView) async

    Parameters

    coordinates

    Coordinates to set.

    mapView

    Map view to apply to.