---
title: "Classes | Mobile sdk | Mobile sdk ios | Ios"
description: "The following classes are available globally."
---

> For AI agents: a documentation index is available at [/llms.txt](https://docs.maptiler.com/llms.txt). Markdown versions of all pages are available by appending .md to any URL.

# Classes

The following classes are available globally.

-   `[MTCustomAnnotationView](#/c:@M@MapTilerSDK@objc\(cs\)MTCustomAnnotationView)`
    
    Subclassable view for adding custom annotations to the map.
    
    [See more](https://docs.maptiler.com/mobile-sdk/ios/api/Classes/MTCustomAnnotationView/)
    
    #### Declaration
    
    Swift
    
    ```
    @MainActor
    open class MTCustomAnnotationView : UIView, @preconcurrency MTAnnotation
    ```
    
    ```
    extension MTCustomAnnotationView: @preconcurrency MTMapViewContent
    ```
    
-   `[MTMarker](#/s:11MapTilerSDK8MTMarkerC)`
    
    Annotation element that can be added to the map.
    
    [See more](https://docs.maptiler.com/mobile-sdk/ios/api/Classes/MTMarker/)
    
    #### Declaration
    
    Swift
    
    ```
    public class MTMarker : MTAnnotation, MTMapViewContent, @unchecked Sendable
    ```
    
-   `[MTTextPopup](#/s:11MapTilerSDK11MTTextPopupC)`
    
    Basic text popup.
    
    Can be attached to MTMarker or standalone.
    
    [See more](https://docs.maptiler.com/mobile-sdk/ios/api/Classes/MTTextPopup/)
    
    #### Declaration
    
    Swift
    
    ```
    public class MTTextPopup : MTAnnotation, MTMapViewContent, @unchecked Sendable
    ```
    
-   `[MTBenchmark](#/s:11MapTilerSDK11MTBenchmarkC)`
    
    Basic benchmarking class.
    
    [See more](https://docs.maptiler.com/mobile-sdk/ios/api/Classes/MTBenchmark/)
    
    #### Declaration
    
    Swift
    
    ```
    @MainActor
    public final class MTBenchmark : MTMapViewDelegate
    ```
    
-   `[MTMapView](#/c:@M@MapTilerSDK@objc\(cs\)MTMapView)`
    
    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](https://docs.maptiler.com/mobile-sdk/ios/api/Classes/MTMapView/)
    
    #### 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
    ```
    
-   `[MTHeatmapLayerHelper](#/s:11MapTilerSDK20MTHeatmapLayerHelperC)`
    
    Helper for creating a heatmap visualization layer from data and styling options.
    
    [See more](https://docs.maptiler.com/mobile-sdk/ios/api/Classes/MTHeatmapLayerHelper/)
    
    #### Declaration
    
    Swift
    
    ```
    public final class MTHeatmapLayerHelper : MTVectorLayerHelper, @unchecked Sendable
    ```
    
-   `[MTPointLayerHelper](#/s:11MapTilerSDK18MTPointLayerHelperC)`
    
    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](https://docs.maptiler.com/mobile-sdk/ios/api/Classes/MTPointLayerHelper/)
    
    #### Declaration
    
    Swift
    
    ```
    public final class MTPointLayerHelper : MTVectorLayerHelper, @unchecked Sendable
    ```
    
-   `[MTPolygonLayerHelper](#/s:11MapTilerSDK20MTPolygonLayerHelperC)`
    
    Helper for creating a polygon (fill) visualization layer from data and styling options.
    
    [See more](https://docs.maptiler.com/mobile-sdk/ios/api/Classes/MTPolygonLayerHelper/)
    
    #### Declaration
    
    Swift
    
    ```
    public final class MTPolygonLayerHelper : MTVectorLayerHelper, @unchecked Sendable
    ```
    
-   `[MTPolylineLayerHelper](#/s:11MapTilerSDK21MTPolylineLayerHelperC)`
    
    Helper for creating a polyline (line) visualization layer from data and styling options.
    
    [See more](https://docs.maptiler.com/mobile-sdk/ios/api/Classes/MTPolylineLayerHelper/)
    
    #### Declaration
    
    Swift
    
    ```
    public final class MTPolylineLayerHelper : MTVectorLayerHelper, @unchecked Sendable
    ```
    
-   `[MTLogger](#/s:11MapTilerSDK8MTLoggerC)`
    
    Logger class used for SDK logs.
    
    [See more](https://docs.maptiler.com/mobile-sdk/ios/api/Classes/MTLogger/)
    
    #### Declaration
    
    Swift
    
    ```
    public class MTLogger
    ```
    
-   `[MTLocationManager](#/c:@M@MapTilerSDK@objc\(cs\)MTLocationManager)`
    
    Class responsible for location updates.
    
    [See more](https://docs.maptiler.com/mobile-sdk/ios/api/Classes/MTLocationManager/)
    
    #### Declaration
    
    Swift
    
    ```
    public class MTLocationManager : NSObject, @preconcurrency CLLocationManagerDelegate
    ```
    
-   `[MTGestureService](#/s:11MapTilerSDK16MTGestureServiceC)`
    
    Service responsible for gesture handling and state.
    
    [See more](https://docs.maptiler.com/mobile-sdk/ios/api/Classes/MTGestureService/)
    
    #### Declaration
    
    Swift
    
    ```
    @MainActor
    public class MTGestureService
    ```
    
-   `[MTMapCameraHelper](#/s:11MapTilerSDK17MTMapCameraHelperC)`
    
    Sets combination of center, bearing and pitch, as well as roll and elevation.
    
    [See more](https://docs.maptiler.com/mobile-sdk/ios/api/Classes/MTMapCameraHelper/)
    
    #### Declaration
    
    Swift
    
    ```
    public class MTMapCameraHelper
    ```
    
-   `[MTPitchLimitHelper](#/s:11MapTilerSDK18MTPitchLimitHelperC)`
    
    Sets combination of minimum and maximum pitch.
    
    [See more](https://docs.maptiler.com/mobile-sdk/ios/api/Classes/MTPitchLimitHelper/)
    
    #### Declaration
    
    Swift
    
    ```
    public class MTPitchLimitHelper
    ```
    
-   `[MTStyle](#/s:11MapTilerSDK7MTStyleC)`
    
    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](https://docs.maptiler.com/mobile-sdk/ios/api/Enums/MTEvent/#/s:11MapTilerSDK7MTEventO7didLoadyA2CmF)` triggers.
    
    [See more](https://docs.maptiler.com/mobile-sdk/ios/api/Classes/MTStyle/)
    
    #### Declaration
    
    Swift
    
    ```
    @MainActor
    public class MTStyle
    ```
    
-   `[MTBackgroundLayer](#/s:11MapTilerSDK17MTBackgroundLayerC)`
    
    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](https://docs.maptiler.com/mobile-sdk/ios/api/Classes/MTBackgroundLayer/)
    
    #### Declaration
    
    Swift
    
    ```
    public class MTBackgroundLayer : MTLayer, @unchecked Sendable, Codable
    ```
    
-   `[MTCircleLayer](#/s:11MapTilerSDK13MTCircleLayerC)`
    
    The circle style layer renders one or more filled circles on the map.
    
    [See more](https://docs.maptiler.com/mobile-sdk/ios/api/Classes/MTCircleLayer/)
    
    #### Declaration
    
    Swift
    
    ```
    public class MTCircleLayer : MTLayer, @unchecked Sendable, Codable
    ```
    
    ```
    extension MTCircleLayer: Equatable
    ```
    
-   `[MTFillLayer](#/s:11MapTilerSDK11MTFillLayerC)`
    
    The fill style layer that renders one or more filled (and optionally stroked) polygons on a map.
    
    [See more](https://docs.maptiler.com/mobile-sdk/ios/api/Classes/MTFillLayer/)
    
    #### Declaration
    
    Swift
    
    ```
    public class MTFillLayer : MTLayer, @unchecked Sendable, Codable
    ```
    
    ```
    extension MTFillLayer: Equatable
    ```
    
-   `[MTFillExtrusionLayer](#/s:11MapTilerSDK20MTFillExtrusionLayerC)`
    
    A fill-extrusion style layer renders one or more filled (and optionally stroked) extruded (3D) polygons on a map.
    
    [See more](https://docs.maptiler.com/mobile-sdk/ios/api/Classes/MTFillExtrusionLayer/)
    
    #### Declaration
    
    Swift
    
    ```
    public class MTFillExtrusionLayer : MTLayer, @unchecked Sendable, Codable
    ```
    
    ```
    extension MTFillExtrusionLayer: Equatable
    ```
    
-   `[MTHeatmapLayer](#/s:11MapTilerSDK14MTHeatmapLayerC)`
    
    A heatmap style layer renders a range of colors to represent the density of points in an area.
    
    [See more](https://docs.maptiler.com/mobile-sdk/ios/api/Classes/MTHeatmapLayer/)
    
    #### Declaration
    
    Swift
    
    ```
    public class MTHeatmapLayer : MTLayer, @unchecked Sendable, Codable
    ```
    
    ```
    extension MTHeatmapLayer: Equatable
    ```
    
-   `[MTHillshadeLayer](#/s:11MapTilerSDK16MTHillshadeLayerC)`
    
    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](https://docs.maptiler.com/mobile-sdk/ios/api/Classes/MTHillshadeLayer/)
    
    #### Declaration
    
    Swift
    
    ```
    public class MTHillshadeLayer : MTLayer, @unchecked Sendable, Codable
    ```
    
-   `[MTLineLayer](#/s:11MapTilerSDK11MTLineLayerC)`
    
    The line style layer that renders one or more stroked polylines on the map.
    
    [See more](https://docs.maptiler.com/mobile-sdk/ios/api/Classes/MTLineLayer/)
    
    #### Declaration
    
    Swift
    
    ```
    public class MTLineLayer : MTLayer, @unchecked Sendable, Codable
    ```
    
-   `[MTRasterLayer](#/s:11MapTilerSDK13MTRasterLayerC)`
    
    The raster style layer renders raster map textures such as imagery.
    
    [See more](https://docs.maptiler.com/mobile-sdk/ios/api/Classes/MTRasterLayer/)
    
    #### Declaration
    
    Swift
    
    ```
    public class MTRasterLayer : MTLayer, @unchecked Sendable, Codable
    ```
    
-   `[MTSymbolLayer](#/s:11MapTilerSDK13MTSymbolLayerC)`
    
    The symbol style that layer renders icon and text labels at points or along lines on a map.
    
    [See more](https://docs.maptiler.com/mobile-sdk/ios/api/Classes/MTSymbolLayer/)
    
    #### Declaration
    
    Swift
    
    ```
    public class MTSymbolLayer : MTLayer, @unchecked Sendable, Codable
    ```
    
    ```
    extension MTSymbolLayer: Equatable
    ```
    
-   `[MTGeoJSONSource](#/s:11MapTilerSDK15MTGeoJSONSourceC)`
    
    A geojson source.
    
    [See more](https://docs.maptiler.com/mobile-sdk/ios/api/Classes/MTGeoJSONSource/)
    
    #### Declaration
    
    Swift
    
    ```
    public class MTGeoJSONSource : MTSource, @unchecked Sendable, Codable
    ```
    
-   `[MTImageSource](#/s:11MapTilerSDK13MTImageSourceC)`
    
    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](https://docs.maptiler.com/mobile-sdk/ios/api/Classes/MTImageSource/)
    
    #### Declaration
    
    Swift
    
    ```
    public class MTImageSource : MTSource, @unchecked Sendable
    ```
    
-   `[MTRasterDEMSource](#/s:11MapTilerSDK17MTRasterDEMSourceC)`
    
    A raster DEM source. Only supports Terrain RGB.
    
    [See more](https://docs.maptiler.com/mobile-sdk/ios/api/Classes/MTRasterDEMSource/)
    
    #### Declaration
    
    Swift
    
    ```
    public class MTRasterDEMSource : MTTileSource, @unchecked Sendable
    ```
    
-   `[MTRasterTileSource](#/s:11MapTilerSDK18MTRasterTileSourceC)`
    
    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=](https://api.maptiler.com/tiles/%5Btilesetid%5D/tiles.json?key=)
    
    [See more](https://docs.maptiler.com/mobile-sdk/ios/api/Classes/MTRasterTileSource/)
    
    #### Declaration
    
    Swift
    
    ```
    public class MTRasterTileSource : MTTileSource, @unchecked Sendable
    ```
    
-   `[MTVectorTileSource](#/s:11MapTilerSDK18MTVectorTileSourceC)`
    
    Undocumented
    
    [See more](https://docs.maptiler.com/mobile-sdk/ios/api/Classes/MTVectorTileSource/)
    
    #### Declaration
    
    Swift
    
    ```
    public class MTVectorTileSource : MTTileSource, @unchecked Sendable
    ```
    
-   `[MTVideoSource](#/s:11MapTilerSDK13MTVideoSourceC)`
    
    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](https://docs.maptiler.com/mobile-sdk/ios/api/Classes/MTVideoSource/)
    
    #### Declaration
    
    Swift
    
    ```
    public class MTVideoSource : MTSource, @unchecked Sendable
    ```
    
-   `[MTColorRamp](#/s:11MapTilerSDK11MTColorRampC)`
    
    Swift wrapper over the MapTiler SDK ColorRamp class.
    
    [See more](https://docs.maptiler.com/mobile-sdk/ios/api/Classes/MTColorRamp/)
    
    #### Declaration
    
    Swift
    
    ```
    @MainActor
    public final class MTColorRamp : @unchecked Sendable
    ```
