Classes

The following classes are available globally.

  • Subclassable view for adding custom annotations to the map.

    See more

    Declaration

    Swift

    @MainActor
    open class MTCustomAnnotationView : UIView, @preconcurrency MTMapViewContent, @preconcurrency MTAnnotation, @unchecked Sendable
  • Annotation element that can be added to the map.

    See more

    Declaration

    Swift

    public class MTMarker : MTAnnotation, MTMapViewContent, @unchecked Sendable
  • Basic text popup.

    Can be attached to MTMarker or standalone.

    See more

    Declaration

    Swift

    public class MTTextPopup : MTAnnotation, MTMapViewContent, @unchecked Sendable
  • Basic benchmarking class.

    See more

    Declaration

    Swift

    @MainActor
    public final class MTBenchmark : MTMapViewDelegate
  • Logger class used for SDK logs.

    See more

    Declaration

    Swift

    public class MTLogger
  • Class responsible for location updates.

    See more

    Declaration

    Swift

    public class MTLocationManager : NSObject, @preconcurrency CLLocationManagerDelegate
  • Object representing the map on the screen.

    Exposes methods and properties that enable changes to the map, and fires events that can be interacted with.

    See more

    Declaration

    Swift

    @MainActor
    open class MTMapView : UIView
    extension MTMapView: MTControllable
    extension MTMapView: MTNavigable
    extension MTMapView: MTStylable
    extension MTMapView: MTZoomable
    extension MTMapView: MTLocationManagerDelegate
  • Service responsible for gesture handling and state.

    See more

    Declaration

    Swift

    @MainActor
    public class MTGestureService
  • Sets combination of center, bearing and pitch, as well as roll and elevation.

    See more

    Declaration

    Swift

    public class MTMapCameraHelper
  • The fill style layer that renders one or more filled (and optionally stroked) polygons on a map.

    See more

    Declaration

    Swift

    public class MTFillLayer : MTLayer, @unchecked Sendable, Codable
    extension MTFillLayer: Equatable
  • The line style layer that renders one or more stroked polylines on the map.

    See more

    Declaration

    Swift

    public class MTLineLayer : MTLayer, @unchecked Sendable, Codable
  • The symbol style that layer renders icon and text labels at points or along lines on a map.

    See more

    Declaration

    Swift

    public class MTSymbolLayer : MTLayer, @unchecked Sendable, Codable
    extension MTSymbolLayer: Equatable
  • The proxy object for the current map style.

    Set of convenience methods for style, sources and layers manipulation. MTStyle is nil until map loading is complete. Since it is loaded asynchronously it should be manipulated only after MTEvent.didLoad triggers.

    See more

    Declaration

    Swift

    @MainActor
    public class MTStyle
  • A geojson source.

    See more

    Declaration

    Swift

    public class MTGeoJSONSource : MTSource, @unchecked Sendable, Codable
  • Undocumented

    See more

    Declaration

    Swift

    public class MTVectorTileSource : MTTileSource, @unchecked Sendable