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 MTAnnotation
    extension MTCustomAnnotationView: @preconcurrency MTMapViewContent
  • 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
  • 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, Sendable
    extension MTMapView: MTControllable
    extension MTMapView: MTNavigable
    extension MTMapView: MTRendering
    extension MTMapView: MTStylable
    extension MTMapView: MTZoomable
    extension MTMapView: MTLocationManagerDelegate
  • Helper for creating a heatmap visualization layer from data and styling options.

    See more

    Declaration

    Swift

    public final class MTHeatmapLayerHelper : MTVectorLayerHelper, @unchecked Sendable
  • Helper for creating a point visualization layer from data and styling options.

    Uses the current style to create the underlying source and layers.

    See more

    Declaration

    Swift

    public final class MTPointLayerHelper : MTVectorLayerHelper, @unchecked Sendable
  • Helper for creating a polygon (fill) visualization layer from data and styling options.

    See more

    Declaration

    Swift

    public final class MTPolygonLayerHelper : MTVectorLayerHelper, @unchecked Sendable
  • Helper for creating a polyline (line) visualization layer from data and styling options.

    See more

    Declaration

    Swift

    public final class MTPolylineLayerHelper : MTVectorLayerHelper, @unchecked Sendable
  • 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
  • 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 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
  • The background style layer covers the entire map. Use a background style layer to configure a color or pattern to show below all other map content. If the background layer is transparent or omitted from the style, any part of the map view that does not show another style layer is transparent.

    See more

    Declaration

    Swift

    public class MTBackgroundLayer : MTLayer, @unchecked Sendable, Codable
  • The circle style layer renders one or more filled circles on the map.

    See more

    Declaration

    Swift

    public class MTCircleLayer : MTLayer, @unchecked Sendable, Codable
    extension MTCircleLayer: Equatable
  • 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
  • A fill-extrusion style layer renders one or more filled (and optionally stroked) extruded (3D) polygons on a map.

    See more

    Declaration

    Swift

    public class MTFillExtrusionLayer : MTLayer, @unchecked Sendable, Codable
    extension MTFillExtrusionLayer: Equatable
  • A heatmap style layer renders a range of colors to represent the density of points in an area.

    See more

    Declaration

    Swift

    public class MTHeatmapLayer : MTLayer, @unchecked Sendable, Codable
    extension MTHeatmapLayer: Equatable
  • A hillshade style layer renders digital elevation model (DEM) data on the client-side. Supports Terrain RGB and Mapzen Terrarium tiles via a raster-dem source.

    See more

    Declaration

    Swift

    public class MTHillshadeLayer : MTLayer, @unchecked Sendable, Codable
  • 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 raster style layer renders raster map textures such as imagery.

    See more

    Declaration

    Swift

    public class MTRasterLayer : 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
  • A geojson source.

    See more

    Declaration

    Swift

    public class MTGeoJSONSource : MTSource, @unchecked Sendable, Codable
  • An image source.

    The url value contains the image location. The coordinates array contains [longitude, latitude] pairs for the image corners listed in clockwise order: top left, top right, bottom right, bottom left.

    See more

    Declaration

    Swift

    public class MTImageSource : MTSource, @unchecked Sendable
  • A raster DEM source. Only supports Terrain RGB.

    See more

    Declaration

    Swift

    public class MTRasterDEMSource : MTTileSource, @unchecked Sendable
  • A raster tile source.

    For raster tiles hosted by MapTiler, the “url” value should be of the form https://api.maptiler.com/tiles/[tilesetid]/tiles.json?key=

    See more

    Declaration

    Swift

    public class MTRasterTileSource : MTTileSource, @unchecked Sendable
  • Undocumented

    See more

    Declaration

    Swift

    public class MTVectorTileSource : MTTileSource, @unchecked Sendable
  • A video source.

    The urls value is an array. For each URL in the array, a video element source will be created. The coordinates array contains [longitude, latitude] pairs for the video corners listed in clockwise order: top left, top right, bottom right, bottom left.

    See more

    Declaration

    Swift

    public class MTVideoSource : MTSource, @unchecked Sendable
  • Swift wrapper over the MapTiler SDK ColorRamp class.

    See more

    Declaration

    Swift

    @MainActor
    public final class MTColorRamp : @unchecked Sendable