---
title: "MTMapView | Mobile sdk | Mobile sdk ios | Ios"
description: "Object representing the map on the screen."
---

> 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.

# MTMapView

```
@MainActor
open class MTMapView : UIView, Sendable
```

```
extension MTMapView: MTControllable
```

```
extension MTMapView: MTNavigable
```

```
extension MTMapView: MTRendering
```

```
extension MTMapView: MTStylable
```

```
extension MTMapView: MTZoomable
```

```
extension MTMapView: MTLocationManagerDelegate
```

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.

-   `[style](#/s:11MapTilerSDK9MTMapViewC5styleAA7MTStyleCSgvp)`
    
    Proxy style object of the map.
    
    #### Declaration
    
    Swift
    
    ```
    @MainActor
    public private(set) var style: MTStyle? { get }
    ```
    
-   `[locationManager](#/s:11MapTilerSDK9MTMapViewC15locationManagerAA010MTLocationG0CSgvp)`
    
    Undocumented
    
    #### Declaration
    
    Swift
    
    ```
    @MainActor
    public private(set) var locationManager: MTLocationManager? { get set }
    ```
    
-   `[options](#/s:11MapTilerSDK9MTMapViewC7optionsAA0D7OptionsVSgvp)`
    
    Current options of the map object.
    
    #### Declaration
    
    Swift
    
    ```
    @MainActor
    public var options: MTMapOptions?
    ```
    
-   `[gestureService](#/s:11MapTilerSDK9MTMapViewC14gestureServiceAA09MTGestureG0CSgvp)`
    
    Service responsible for gestures handling
    
    #### Declaration
    
    Swift
    
    ```
    @MainActor
    public var gestureService: MTGestureService!
    ```
    
-   `[delegate](#/s:11MapTilerSDK9MTMapViewC8delegateAA0dE8Delegate_pSgvp)`
    
    Delegate object responsible for event propagation
    
    #### Declaration
    
    Swift
    
    ```
    @MainActor
    public weak var delegate: MTMapViewDelegate?
    ```
    
-   `[isInitialized](#/s:11MapTilerSDK9MTMapViewC13isInitializedSbvp)`
    
    Boolean indicating whether map is initialized,
    
    #### Declaration
    
    Swift
    
    ```
    @MainActor
    public private(set) var isInitialized: Bool { get }
    ```
    
-   `[didInitialize](#/s:11MapTilerSDK9MTMapViewC13didInitializeyycSgvp)`
    
    Triggers when map initializes for the first time.
    
    #### Declaration
    
    Swift
    
    ```
    @MainActor
    public var didInitialize: (() -> Void)?
    ```
    
-   `[init(frame:)](#/c:@M@MapTilerSDK@objc\(cs\)MTMapView\(im\)initWithFrame:)`
    
    Initializes the map with the frame.
    
    #### Declaration
    
    Swift
    
    ```
    @MainActor
    override public init(frame: CGRect)
    ```
    
-   `[init(coder:)](#/c:@M@MapTilerSDK@objc\(cs\)MTMapView\(im\)initWithCoder:)`
    
    Initializes the map with the coder.
    
    #### Declaration
    
    Swift
    
    ```
    @MainActor
    required public init?(coder: NSCoder)
    ```
    
-   `[init(frame:options:referenceStyle:styleVariant:)](#/s:11MapTilerSDK9MTMapViewC5frame7options14referenceStyle12styleVariantACSo6CGRectV_AA0D7OptionsVAA0d9ReferenceI0OAA0diK0OSgtcfc)`
    
    Initializes the map with the frame, options and style.
    
    #### Declaration
    
    Swift
    
    ```
    @MainActor
    convenience public init(
        frame: CGRect,
        options: MTMapOptions,
        referenceStyle: MTMapReferenceStyle,
        styleVariant: MTMapStyleVariant? = nil
    )
    ```
    
-   `[init(options:)](#/s:11MapTilerSDK9MTMapViewC7optionsAcA0D7OptionsVSg_tcfc)`
    
    Initializes the map with the options.
    
    #### Declaration
    
    Swift
    
    ```
    @MainActor
    convenience public init(options: MTMapOptions?)
    ```
    
-   `[initLocationTracking(using:accuracy:)](#/s:11MapTilerSDK9MTMapViewC20initLocationTracking5using8accuracyySo17CLLocationManagerCSg_SdSgtF)`
    
    Initializes location tracking manager.
    
    In order to track user location you have to initialize the MLLocationManager, add necessary Privacy Location messages to Info.plist, subscribe to MTLocationManagerDelegate and start location updates and/or request location once via the locationManager property on MTMapView.
    
    #### Declaration
    
    Swift
    
    ```
    @MainActor
    public func initLocationTracking(using manager: CLLocationManager? = nil, accuracy: CLLocationAccuracy? = nil)
    ```
    
    #### Parameters
    
    <table class="graybox"><tbody><tr><td><code><em>manager</em></code></td><td><div><p>Optional external CLLocationManager to use.</p></div></td></tr><tr><td><code><em>accuracy</em></code></td><td><div><p>Optional desired accuracy to use.</p></div></td></tr></tbody></table>
    
-   `[layoutSubviews()](#/c:@M@MapTilerSDK@objc\(cs\)MTMapView\(im\)layoutSubviews)`
    
    Undocumented
    
    #### Declaration
    
    Swift
    
    ```
    @MainActor
    open override func layoutSubviews()
    ```
    
-   `[reload()](#/s:11MapTilerSDK9MTMapViewC6reloadyyF)`
    
    Reloads the map view.
    
    #### Declaration
    
    Swift
    
    ```
    @MainActor
    public func reload()
    ```
    
-   `[loadOfflinePack(_:limitToRegion:)](#/s:11MapTilerSDK9MTMapViewC15loadOfflinePack_13limitToRegionyAA09MTOfflineH0C_SbtYaKF)` Asynchronous
    
    Loads an offline pack onto the map view.
    
    Note
    
    Loading an offline pack changes the map’s style to the local offline style. This process resets all custom sources, layers, and annotations. You must re-add any custom map content after the style finishes loading.
    
    When `limitToRegion` is `true` (the default), the map’s camera is locked to the bounding box of the downloaded area. This physically restricts how far out the user can zoom. For example, if you downloaded a 5-mile area with a `minZoom` of 0, you will _not_ be able to zoom out to 0, because the 5-mile area would become a tiny dot on the screen. The apparent minimum zoom becomes whatever level is required to fit the downloaded bounding box perfectly onto the device screen.
    
    #### Declaration
    
    Swift
    
    ```
    @MainActor
    public func loadOfflinePack(_ pack: MTOfflinePack, limitToRegion: Bool = true) async throws
    ```
    
    #### Parameters
    
    <table class="graybox"><tbody><tr><td><code><em>pack</em></code></td><td><div><p>The <code><a href="https://docs.maptiler.com/mobile-sdk/ios/api/Actors/MTOfflinePack/">MTOfflinePack</a></code> to load.</p></div></td></tr><tr><td><code><em>limitToRegion</em></code></td><td><div><p>Default <code>true</code> limits max bounds and zoom range to the pack’s region.</p></div></td></tr></tbody></table>
    
-   `[unloadOfflinePack(fallbackStyle:fallbackVariant:resetCameraLimits:)](#/s:11MapTilerSDK9MTMapViewC17unloadOfflinePack13fallbackStyle0I7Variant17resetCameraLimitsyAA0d9ReferenceJ0O_AA0djK0OSgSbtYaF)` Asynchronous
    
    Unloads the current offline pack and restores the map to an online style.
    
    #### Declaration
    
    Swift
    
    ```
    @MainActor
    public func unloadOfflinePack(
        fallbackStyle: MTMapReferenceStyle = .streets,
        fallbackVariant: MTMapStyleVariant? = nil,
        resetCameraLimits: Bool = true
    ) async
    ```
    
    #### Parameters
    
    <table class="graybox"><tbody><tr><td><code><em>fallbackStyle</em></code></td><td><div><p>The reference style to load after unloading the pack. Defaults to <code>.streets</code>.</p></div></td></tr><tr><td><code><em>fallbackVariant</em></code></td><td><div><p>The style variant to load. Defaults to <code>nil</code>.</p></div></td></tr><tr><td><code><em>resetCameraLimits</em></code></td><td><div><p>If <code>true</code> (default), clears any zoom and bounding box restrictions set by the pack.</p></div></td></tr></tbody></table>
    
-   `[createOfflineRegion(bbox:minZoom:maxZoom:pixelRatio:)](#/s:11MapTilerSDK9MTMapViewC19createOfflineRegion4bbox7minZoom03maxK010pixelRatioAA09MTOfflineH10DefinitionVAA13MTBoundingBoxV_S2iSftF)`
    
    Creates an offline region definition using the map’s current reference style and variant.
    
    #### Declaration
    
    Swift
    
    ```
    @MainActor
    public func createOfflineRegion(
        bbox: MTBoundingBox,
        minZoom: Int,
        maxZoom: Int,
        pixelRatio: Float = 1.0
    ) -> MTOfflineRegionDefinition
    ```
    
    #### Parameters
    
    <table class="graybox"><tbody><tr><td><code><em>bbox</em></code></td><td><div><p>The bounding box to download.</p></div></td></tr><tr><td><code><em>bbox</em></code></td><td><div><p>The bounding box to download.</p></div></td></tr><tr><td><code><em>minZoom</em></code></td><td><div><p>The minimum zoom level.</p></div></td></tr><tr><td><code><em>maxZoom</em></code></td><td><div><p>The maximum zoom level.</p></div></td></tr><tr><td><code><em>pixelRatio</em></code></td><td><div><p>The pixel ratio (defaults to 1.0).</p></div></td></tr></tbody></table>
    
    #### Return Value
    
    A region definition configured with the current map’s style configuration.
    
-   `[createOfflineRegion(geometry:minZoom:maxZoom:pixelRatio:)](#/s:11MapTilerSDK9MTMapViewC19createOfflineRegion8geometry7minZoom03maxK010pixelRatioAA09MTOfflineH10DefinitionVAA0oH8GeometryO_S2iSftF)`
    
    Creates an offline region definition for the current map configuration.
    
    #### Declaration
    
    Swift
    
    ```
    @MainActor
    public func createOfflineRegion(
        geometry: MTOfflineRegionGeometry,
        minZoom: Int,
        maxZoom: Int,
        pixelRatio: Float = 1.0
    ) -> MTOfflineRegionDefinition
    ```
    
    #### Parameters
    
    <table class="graybox"><tbody><tr><td><code><em>geometry</em></code></td><td><div><p>The geometry to download (e.g. bounding box or route).</p></div></td></tr><tr><td><code><em>minZoom</em></code></td><td><div><p>The minimum zoom level.</p></div></td></tr><tr><td><code><em>maxZoom</em></code></td><td><div><p>The maximum zoom level.</p></div></td></tr><tr><td><code><em>pixelRatio</em></code></td><td><div><p>The pixel ratio (defaults to 1.0).</p></div></td></tr></tbody></table>
    
    #### Return Value
    
    A region definition configured with the current map’s style configuration.
    
-   `[convertGPXToGeoJSON(_:)](#/s:11MapTilerSDK9MTMapViewC19convertGPXToGeoJSONyS2SYaKF)` Asynchronous
    
    Converts a GPX document string to a GeoJSON FeatureCollection JSON string.
    
    #### Declaration
    
    Swift
    
    ```
    @MainActor
    func convertGPXToGeoJSON(_ gpxString: String) async throws -> String
    ```
    
    #### Parameters
    
    <table class="graybox"><tbody><tr><td><code><em>gpxString</em></code></td><td><div><p>Raw GPX XML content.</p></div></td></tr></tbody></table>
    
    #### Return Value
    
    A GeoJSON FeatureCollection encoded as a JSON string.
    
-   `[convertKMLToGeoJSON(_:)](#/s:11MapTilerSDK9MTMapViewC19convertKMLToGeoJSONyS2SYaKF)` Asynchronous
    
    Converts a KML document string to a GeoJSON FeatureCollection JSON string.
    
    #### Declaration
    
    Swift
    
    ```
    @MainActor
    func convertKMLToGeoJSON(_ kmlString: String) async throws -> String
    ```
    
    #### Parameters
    
    <table class="graybox"><tbody><tr><td><code><em>kmlString</em></code></td><td><div><p>Raw KML XML content.</p></div></td></tr></tbody></table>
    
    #### Return Value
    
    A GeoJSON FeatureCollection encoded as a JSON string.
    
-   `[getMaptilerSessionId(completionHandler:)](#/s:11MapTilerSDK9MTMapViewC20getMaptilerSessionId17completionHandleryys6ResultOySSAA7MTErrorOGc_tF)`
    
    Returns the current SDK session UUID used for sessionized requests and telemetry.
    
    #### Declaration
    
    Swift
    
    ```
    @available(iOS, deprecated: 16.0, message: "Prefer the async version for modern concurrency handling")
    @MainActor
    public func getMaptilerSessionId(completionHandler: @escaping (Result<String, MTError>) -> Void)
    ```
    
    #### Parameters
    
    <table class="graybox"><tbody><tr><td><code><em>completionHandler</em></code></td><td><div><p>A handler block to execute when function finishes.</p></div></td></tr></tbody></table>
    
-   `[prewarm(completionHandler:)](#/s:11MapTilerSDK9MTMapViewC7prewarm17completionHandleryys6ResultOyytAA7MTErrorOGcSg_tF)`
    
    Initializes resources that can be shared across maps to lower load times in some situations.
    
    By default, the lifecycle of these resources is managed automatically, and they are lazily initialized when a Map is first created. By invoking `[prewarm()](https://docs.maptiler.com/mobile-sdk/ios/api/Classes/MTMapView/#/s:11MapTilerSDK9MTMapViewC7prewarmyyYaF)`, these resources will be created ahead of time, and will not be cleared when the last Map is removed from the page. This allows them to be re-used by new Map instances that are created later. They can be manually cleared by calling `[clearPrewarmedResources()](https://docs.maptiler.com/mobile-sdk/ios/api/Classes/MTMapView/#/s:11MapTilerSDK9MTMapViewC23clearPrewarmedResourcesyyYaF)`.
    
    #### Declaration
    
    Swift
    
    ```
    @available(iOS, deprecated: 16.0, message: "Prefer the async version for modern concurrency handling")
    @MainActor
    public func prewarm(completionHandler: ((Result<Void, MTError>) -> Void)? = nil)
    ```
    
    #### Parameters
    
    <table class="graybox"><tbody><tr><td><code><em>completionHandler</em></code></td><td><div><p>A handler block to execute when function finishes.</p></div></td></tr></tbody></table>
    
-   `[clearPrewarmedResources(completionHandler:)](#/s:11MapTilerSDK9MTMapViewC23clearPrewarmedResources17completionHandleryys6ResultOyytAA7MTErrorOGcSg_tF)`
    
    Clears up resources that have previously been created by `[prewarm()](https://docs.maptiler.com/mobile-sdk/ios/api/Classes/MTMapView/#/s:11MapTilerSDK9MTMapViewC7prewarmyyYaF)`.
    
    Note that this is typically not necessary. You should only call this function if you expect the user of your app to not return to a Map view at any point in your application.
    
    #### Declaration
    
    Swift
    
    ```
    @available(iOS, deprecated: 16.0, message: "Prefer the async version for modern concurrency handling")
    @MainActor
    public func clearPrewarmedResources(completionHandler: ((Result<Void, MTError>) -> Void)? = nil)
    ```
    
    #### Parameters
    
    <table class="graybox"><tbody><tr><td><code><em>completionHandler</em></code></td><td><div><p>A handler block to execute when function finishes.</p></div></td></tr></tbody></table>
    
-   `[getMaptilerSessionId()](#/s:11MapTilerSDK9MTMapViewC20getMaptilerSessionIdSSyYaF)` Asynchronous
    
    Returns the current SDK session UUID used for sessionized requests and telemetry.
    
    #### Declaration
    
    Swift
    
    ```
    @MainActor
    public func getMaptilerSessionId() async -> String
    ```
    
-   `[prewarm()](#/s:11MapTilerSDK9MTMapViewC7prewarmyyYaF)` Asynchronous
    
    Initializes resources that can be shared across maps to lower load times in some situations.
    
    #### Declaration
    
    Swift
    
    ```
    @MainActor
    public func prewarm() async
    ```
    
-   `[clearPrewarmedResources()](#/s:11MapTilerSDK9MTMapViewC23clearPrewarmedResourcesyyYaF)` Asynchronous
    
    Clears up resources that have previously been created by `[prewarm()](https://docs.maptiler.com/mobile-sdk/ios/api/Classes/MTMapView/#/s:11MapTilerSDK9MTMapViewC7prewarmyyYaF)`.
    
    #### Declaration
    
    Swift
    
    ```
    @MainActor
    public func clearPrewarmedResources() async
    ```
    
-   `[addMapTilerLogoControl(position:completionHandler:)](#/s:11MapTilerSDK9MTMapViewC03addaB11LogoControl8position17completionHandleryAA0D6CornerO_ys6ResultOyytAA7MTErrorOGcSgtF)`
    
    Adds Maptiler logo to the map.
    
    #### Declaration
    
    Swift
    
    ```
    @available(iOS, deprecated: 16.0, message: "Prefer the async version for modern concurrency handling")
    @MainActor
    public func addMapTilerLogoControl(
        position: MTMapCorner,
        completionHandler: ((Result<Void, MTError>) -> Void)? = nil
    )
    ```
    
    #### Parameters
    
    <table class="graybox"><tbody><tr><td><code><em>position</em></code></td><td><div><p>The corner position of the logo.</p></div></td></tr><tr><td><code><em>completionHandler</em></code></td><td><div><p>A handler block to execute when function finishes.</p></div></td></tr></tbody></table>
    
-   `[addLogoControl(name:logoURL:linkURL:position:completionHandler:)](#/s:11MapTilerSDK9MTMapViewC14addLogoControl4name7logoURL04linkK08position17completionHandlerySS_10Foundation0K0VAlA0D6CornerOys6ResultOyytAA7MTErrorOGcSgtF)`
    
    Adds logo control to the map.
    
    #### Declaration
    
    Swift
    
    ```
    @available(iOS, deprecated: 16.0, message: "Prefer the async version for modern concurrency handling")
    @MainActor
    public func addLogoControl(
        name: String,
        logoURL: URL,
        linkURL: URL,
        position: MTMapCorner,
        completionHandler: ((Result<Void, MTError>) -> Void)? = nil
    )
    ```
    
    #### Parameters
    
    <table class="graybox"><tbody><tr><td><code><em>name</em></code></td><td><div><p>Unique name of the logo.</p></div></td></tr><tr><td><code><em>logoURL</em></code></td><td><div><p>URL of logo image.</p></div></td></tr><tr><td><code><em>linkURL</em></code></td><td><div><p>URL of logo link.</p></div></td></tr><tr><td><code><em>position</em></code></td><td><div><p>The corner position of the logo.</p></div></td></tr><tr><td><code><em>completionHandler</em></code></td><td><div><p>A handler block to execute when function finishes.</p></div></td></tr></tbody></table>
    
-   `[addMapTilerLogoControl(position:)](#/s:11MapTilerSDK9MTMapViewC03addaB11LogoControl8positionyAA0D6CornerO_tYaF)` Asynchronous
    
    Adds Maptiler logo to the map.
    
    #### Declaration
    
    Swift
    
    ```
    @MainActor
    public func addMapTilerLogoControl(position: MTMapCorner) async
    ```
    
    #### Parameters
    
    <table class="graybox"><tbody><tr><td><code><em>name</em></code></td><td><div><p>Unique name of the logo.</p></div></td></tr><tr><td><code><em>position</em></code></td><td><div><p>The corner position of the logo.</p></div></td></tr></tbody></table>
    
-   `[addLogoControl(name:logoURL:linkURL:position:)](#/s:11MapTilerSDK9MTMapViewC14addLogoControl4name7logoURL04linkK08positionySS_10Foundation0K0VAkA0D6CornerOtYaF)` Asynchronous
    
    Adds logo control to the map.
    
    #### Declaration
    
    Swift
    
    ```
    @MainActor
    public func addLogoControl(name: String, logoURL: URL, linkURL: URL, position: MTMapCorner) async
    ```
    
    #### Parameters
    
    <table class="graybox"><tbody><tr><td><code><em>name</em></code></td><td><div><p>Unique name of the logo.</p></div></td></tr><tr><td><code><em>logoURL</em></code></td><td><div><p>URL of logo image.</p></div></td></tr><tr><td><code><em>linkURL</em></code></td><td><div><p>URL of logo link.</p></div></td></tr><tr><td><code><em>position</em></code></td><td><div><p>The corner position of the logo.</p></div></td></tr></tbody></table>
    
-   `[setBearing(_:completionHandler:)](#/s:11MapTilerSDK9MTMapViewC10setBearing_17completionHandlerySd_ys6ResultOyytAA7MTErrorOGcSgtF)`
    
    Sets the bearing of the map.
    
    The bearing is the compass direction that is “up”; for example, a bearing of 90° orients the map so that east is up.
    
    #### Declaration
    
    Swift
    
    ```
    @available(iOS, deprecated: 16.0, message: "Prefer the async version for modern concurrency handling")
    @MainActor
    public func setBearing(_ bearing: Double, completionHandler: ((Result<Void, MTError>) -> Void)? = nil)
    ```
    
    #### Parameters
    
    <table class="graybox"><tbody><tr><td><code><em>bearing</em></code></td><td><div><p>The desired bearing.</p></div></td></tr><tr><td><code><em>completionHandler</em></code></td><td><div><p>A handler block to execute when function finishes.</p></div></td></tr></tbody></table>
    
-   `[rotateTo(_:options:completionHandler:)](#/s:11MapTilerSDK9MTMapViewC8rotateTo_7options17completionHandlerySd_AA18MTAnimationOptionsVSgys6ResultOyytAA7MTErrorOGcSgtF)`
    
    Rotates the map to a given bearing with an optional animated transition.
    
    #### Declaration
    
    Swift
    
    ```
    @available(iOS, deprecated: 16.0, message: "Prefer the async version for modern concurrency handling")
    @MainActor
    public func rotateTo(
        _ bearing: Double,
        options: MTAnimationOptions? = nil,
        completionHandler: ((Result<Void, MTError>) -> Void)? = nil
    )
    ```
    
    #### Parameters
    
    <table class="graybox"><tbody><tr><td><code><em>bearing</em></code></td><td><div><p>The desired bearing.</p></div></td></tr><tr><td><code><em>options</em></code></td><td><div><p>Animation options.</p></div></td></tr><tr><td><code><em>completionHandler</em></code></td><td><div><p>A handler block to execute when function finishes.</p></div></td></tr></tbody></table>
    
-   `[setCenter(_:completionHandler:)](#/s:11MapTilerSDK9MTMapViewC9setCenter_17completionHandlerySo22CLLocationCoordinate2DV_ys6ResultOyytAA7MTErrorOGcSgtF)`
    
    Sets the map’s geographical centerpoint.
    
    #### Declaration
    
    Swift
    
    ```
    @available(iOS, deprecated: 16.0, message: "Prefer the async version for modern concurrency handling")
    @MainActor
    public func setCenter(
        _ center: CLLocationCoordinate2D,
        completionHandler: ((Result<Void, MTError>) -> Void)? = nil
    )
    ```
    
    #### Parameters
    
    <table class="graybox"><tbody><tr><td><code><em>center</em></code></td><td><div><p>The desired center coordinate.</p></div></td></tr><tr><td><code><em>completionHandler</em></code></td><td><div><p>A handler block to execute when function finishes.</p></div></td></tr></tbody></table>
    
-   `[flyTo(_:options:animationOptions:completionHandler:)](#/s:11MapTilerSDK9MTMapViewC5flyTo_7options16animationOptions17completionHandlerySo22CLLocationCoordinate2DV_AA05MTFlygJ0VSgAA011MTAnimationJ0VSgys6ResultOyytAA7MTErrorOGcSgtF)`
    
    Changes any combination of center, zoom, bearing, and pitch.
    
    The animation seamlessly incorporates zooming and panning to help the user maintain her bearings even after traversing a great distance.
    
    Note
    
    The animation will be skipped, and this will behave equivalently to jumpTo if the user has the reduced motion accessibility feature enabled, unless options includes essential: true.
    
    #### Declaration
    
    Swift
    
    ```
    @available(iOS, deprecated: 16.0, message: "Prefer the async version for modern concurrency handling")
    @MainActor
    public func flyTo(
        _ center: CLLocationCoordinate2D,
        options: MTFlyToOptions?,
        animationOptions: MTAnimationOptions?,
        completionHandler: ((Result<Void, MTError>) -> Void)? = nil
    )
    ```
    
    #### Parameters
    
    <table class="graybox"><tbody><tr><td><code><em>center</em></code></td><td><div><p>The desired center coordinate.</p></div></td></tr><tr><td><code><em>options</em></code></td><td><div><p>Custom options to use.</p></div></td></tr><tr><td><code><em>animationOptions</em></code></td><td><div><p>Optional animation options to use.</p></div></td></tr><tr><td><code><em>completionHandler</em></code></td><td><div><p>A handler block to execute when function finishes.</p></div></td></tr></tbody></table>
    
-   `[easeTo(_:options:animationOptions:completionHandler:)](#/s:11MapTilerSDK9MTMapViewC6easeTo_7options16animationOptions17completionHandlerySo22CLLocationCoordinate2DV_AA08MTCameraJ0VSgAA011MTAnimationJ0VSgys6ResultOyytAA7MTErrorOGcSgtF)`
    
    Changes any combination of center, zoom, bearing, pitch, and padding.
    
    The map will retain its current values for any details not specified in options.
    
    Note
    
    The transition will happen instantly if the user has enabled the reduced motion accessibility feature, unless options includes essential: true.
    
    #### Declaration
    
    Swift
    
    ```
    @available(iOS, deprecated: 16.0, message: "Prefer the async version for modern concurrency handling")
    @MainActor
    public func easeTo(
        _ center: CLLocationCoordinate2D,
        options: MTCameraOptions?,
        animationOptions: MTAnimationOptions?,
        completionHandler: ((Result<Void, MTError>) -> Void)? = nil
    )
    ```
    
    #### Parameters
    
    <table class="graybox"><tbody><tr><td><code><em>center</em></code></td><td><div><p>The desired center coordinate.</p></div></td></tr><tr><td><code><em>options</em></code></td><td><div><p>Custom options to use.</p></div></td></tr><tr><td><code><em>animationOptions</em></code></td><td><div><p>Optional animation options to use.</p></div></td></tr><tr><td><code><em>completionHandler</em></code></td><td><div><p>A handler block to execute when function finishes.</p></div></td></tr></tbody></table>
    
-   `[jumpTo(_:options:completionHandler:)](#/s:11MapTilerSDK9MTMapViewC6jumpTo_7options17completionHandlerySo22CLLocationCoordinate2DV_AA15MTCameraOptionsVSgys6ResultOyytAA7MTErrorOGcSgtF)`
    
    Changes any combination of center, zoom, bearing, and pitch, without an animated transition.
    
    #### Declaration
    
    Swift
    
    ```
    @available(iOS, deprecated: 16.0, message: "Prefer the async version for modern concurrency handling")
    @MainActor
    public func jumpTo(
        _ center: CLLocationCoordinate2D,
        options: MTCameraOptions?,
        completionHandler: ((Result<Void, MTError>) -> Void)? = nil
    )
    ```
    
    #### Parameters
    
    <table class="graybox"><tbody><tr><td><code><em>center</em></code></td><td><div><p>The desired center coordinate.</p></div></td></tr><tr><td><code><em>options</em></code></td><td><div><p>Custom options to use.</p></div></td></tr><tr><td><code><em>completionHandler</em></code></td><td><div><p>A handler block to execute when function finishes.</p></div></td></tr></tbody></table>
    
-   `[fitBounds(_:options:completionHandler:)](#/s:11MapTilerSDK9MTMapViewC9fitBounds_7options17completionHandleryAA8MTBoundsV_AA05MTFitG7OptionsVSgys6ResultOyytAA7MTErrorOGcSgtF)`
    
    Fits the map so the provided bounds are fully visible within the viewport.
    
    #### Declaration
    
    Swift
    
    ```
    @available(iOS, deprecated: 16.0, message: "Prefer the async version for modern concurrency handling")
    @MainActor
    public func fitBounds(
        _ bounds: MTBounds,
        options fitOptions: MTFitBoundsOptions? = nil,
        completionHandler: ((Result<Void, MTError>) -> Void)? = nil
    )
    ```
    
    #### Parameters
    
    <table class="graybox"><tbody><tr><td><code><em>bounds</em></code></td><td><div><p>Geographic bounds to display.</p></div></td></tr><tr><td><code><em>fitOptions</em></code></td><td><div><p>Additional configuration that controls the fitting animation.</p></div></td></tr><tr><td><code><em>completionHandler</em></code></td><td><div><p>A handler block to execute when function finishes.</p></div></td></tr></tbody></table>
    
-   `[fitScreenCoordinates(_:_:_:options:completionHandler:)](#/s:11MapTilerSDK9MTMapViewC20fitScreenCoordinates___7options17completionHandleryAA7MTPointV_AHSdAA18MTFitBoundsOptionsVSgys6ResultOyytAA7MTErrorOGcSgtF)`
    
    Pans, rotates and zooms the map to to fit the box made by points p0 and p1 once the map is rotated to the specified bearing. To zoom without rotating, pass in the current map bearing.
    
    #### Declaration
    
    Swift
    
    ```
    @available(iOS, deprecated: 16.0, message: "Prefer the async version for modern concurrency handling")
    @MainActor
    public func fitScreenCoordinates(
        _ p0: MTPoint,
        _ p1: MTPoint,
        _ bearing: Double,
        options fitOptions: MTFitBoundsOptions? = nil,
        completionHandler: ((Result<Void, MTError>) -> Void)? = nil
    )
    ```
    
    #### Parameters
    
    <table class="graybox"><tbody><tr><td><code><em>p0</em></code></td><td><div><p>First point on screen.</p></div></td></tr><tr><td><code><em>p1</em></code></td><td><div><p>Second point on screen.</p></div></td></tr><tr><td><code><em>bearing</em></code></td><td><div><p>Desired map bearing at end of animation.</p></div></td></tr><tr><td><code><em>fitOptions</em></code></td><td><div><p>Additional configuration that controls the fitting animation.</p></div></td></tr><tr><td><code><em>completionHandler</em></code></td><td><div><p>A handler block to execute when function finishes.</p></div></td></tr></tbody></table>
    
-   `[getPadding(completionHandler:)](#/s:11MapTilerSDK9MTMapViewC10getPadding17completionHandleryys6ResultOyAA16MTPaddingOptionsVAA7MTErrorOGcSg_tF)`
    
    Returns the current viewport padding.
    
    #### Declaration
    
    Swift
    
    ```
    @available(iOS, deprecated: 16.0, message: "Prefer the async version for modern concurrency handling")
    @available(iOS, deprecated: 16.0, message: "Prefer the async version for modern concurrency handling")
    @MainActor
    public func getPadding(completionHandler: ((Result<MTPaddingOptions, MTError>) -> Void)? = nil)
    ```
    
    #### Parameters
    
    <table class="graybox"><tbody><tr><td><code><em>completionHandler</em></code></td><td><div><p>A handler block to execute when function finishes with result.</p></div></td></tr></tbody></table>
    
-   `[setPadding(_:completionHandler:)](#/s:11MapTilerSDK9MTMapViewC10setPadding_17completionHandleryAA16MTPaddingOptionsV_ys6ResultOyytAA7MTErrorOGcSgtF)`
    
    Undocumented
    
    #### Declaration
    
    Swift
    
    ```
    @MainActor
    public func setPadding(_ options: MTPaddingOptions, completionHandler: ((Result<Void, MTError>) -> Void)? = nil)
    ```
    
-   `[fitToIpBounds(completionHandler:)](#/s:11MapTilerSDK9MTMapViewC13fitToIpBounds17completionHandleryys6ResultOyytAA7MTErrorOGcSg_tF)`
    
    Fits the map to the bounds inferred from the current IP address.
    
    #### Declaration
    
    Swift
    
    ```
    @available(iOS, deprecated: 16.0, message: "Prefer the async version for modern concurrency handling")
    @MainActor
    public func fitToIpBounds(completionHandler: ((Result<Void, MTError>) -> Void)? = nil)
    ```
    
    #### Parameters
    
    <table class="graybox"><tbody><tr><td><code><em>completionHandler</em></code></td><td><div><p>A handler block to execute when function finishes.</p></div></td></tr></tbody></table>
    
-   `[centerOnIpPoint(completionHandler:)](#/s:11MapTilerSDK9MTMapViewC15centerOnIpPoint17completionHandleryys6ResultOyytAA7MTErrorOGcSg_tF)`
    
    Centers the map on the location inferred from the current IP address.
    
    #### Declaration
    
    Swift
    
    ```
    @available(iOS, deprecated: 16.0, message: "Prefer the async version for modern concurrency handling")
    @MainActor
    public func centerOnIpPoint(completionHandler: ((Result<Void, MTError>) -> Void)? = nil)
    ```
    
    #### Parameters
    
    <table class="graybox"><tbody><tr><td><code><em>completionHandler</em></code></td><td><div><p>A handler block to execute when function finishes.</p></div></td></tr></tbody></table>
    
-   `[setIsCenterClampedToGround(_:completionHandler:)](#/s:11MapTilerSDK9MTMapViewC26setIsCenterClampedToGround_17completionHandlerySb_ys6ResultOyytAA7MTErrorOGcSgtF)`
    
    Sets the value of centerClampedToGround.
    
    If true, the elevation of the center point will automatically be set to the terrain elevation (or zero if terrain is not enabled). If false, the elevation of the center point will default to sea level and will not automatically update. Needs to be set to false to keep the camera above ground when pitch > 90 degrees.
    
    Note
    
    Defaults to true.
    
    #### Declaration
    
    Swift
    
    ```
    @available(iOS, deprecated: 16.0, message: "Prefer the async version for modern concurrency handling")
    @MainActor
    public func setIsCenterClampedToGround(
        _ isCenterClampedToGround: Bool,
        completionHandler: ((Result<Void, MTError>) -> Void)? = nil
    )
    ```
    
    #### Parameters
    
    <table class="graybox"><tbody><tr><td><code><em>isCenterClampedToGround</em></code></td><td><div><p>The boolean value indicating if center will be clamped to ground.</p></div></td></tr><tr><td><code><em>completionHandler</em></code></td><td><div><p>A handler block to execute when function finishes.</p></div></td></tr></tbody></table>
    
-   `[setCenterElevation(_:completionHandler:)](#/s:11MapTilerSDK9MTMapViewC18setCenterElevation_17completionHandlerySd_ys6ResultOyytAA7MTErrorOGcSgtF)`
    
    Sets the elevation of the map’s center point, in meters above sea level.
    
    Note
    
    Triggers the following events: moveStart and moveEnd.
    
    #### Declaration
    
    Swift
    
    ```
    @available(iOS, deprecated: 16.0, message: "Prefer the async version for modern concurrency handling")
    @MainActor
    public func setCenterElevation(_ elevation: Double, completionHandler: ((Result<Void, MTError>) -> Void)? = nil)
    ```
    
    #### Parameters
    
    <table class="graybox"><tbody><tr><td><code><em>elevation</em></code></td><td><div><p>The desired elevation.</p></div></td></tr><tr><td><code><em>completionHandler</em></code></td><td><div><p>A handler block to execute when function finishes.</p></div></td></tr></tbody></table>
    
-   `[setMaxPitch(_:completionHandler:)](#/s:11MapTilerSDK9MTMapViewC11setMaxPitch_17completionHandlerySdSg_ys6ResultOyytAA7MTErrorOGcSgtF)`
    
    Sets or clears the map’s maximum pitch.
    
    If the map’s current pitch is higher than the new maximum, the map will pitch to the new maximum. If null is provided, the function removes the current maximum pitch (sets it to 60).
    
    #### Declaration
    
    Swift
    
    ```
    @available(iOS, deprecated: 16.0, message: "Prefer the async version for modern concurrency handling")
    @MainActor
    public func setMaxPitch(_ maxPitch: Double?, completionHandler: ((Result<Void, MTError>) -> Void)? = nil)
    ```
    
    #### Parameters
    
    <table class="graybox"><tbody><tr><td><code><em>maxPitch</em></code></td><td><div><p>The maximum pitch to set (0-85).</p></div></td></tr><tr><td><code><em>completionHandler</em></code></td><td><div><p>A handler block to execute when function finishes.</p></div></td></tr></tbody></table>
    
-   `[setMaxZoom(_:completionHandler:)](#/s:11MapTilerSDK9MTMapViewC10setMaxZoom_17completionHandlerySdSg_ys6ResultOyytAA7MTErrorOGcSgtF)`
    
    Sets or clears the map’s maximum zoom.
    
    If the map’s current zoom level is higher than the new maximum, the map will zoom to the new maximum. If null or undefined is provided, the function removes the current maximum zoom (sets it to 22).
    
    #### Declaration
    
    Swift
    
    ```
    @available(iOS, deprecated: 16.0, message: "Prefer the async version for modern concurrency handling")
    @MainActor
    public func setMaxZoom(_ maxZoom: Double?, completionHandler: ((Result<Void, MTError>) -> Void)? = nil)
    ```
    
    #### Parameters
    
    <table class="graybox"><tbody><tr><td><code><em>maxZoom</em></code></td><td><div><p>The maximum zoom level to set.</p></div></td></tr><tr><td><code><em>completionHandler</em></code></td><td><div><p>A handler block to execute when function finishes.</p></div></td></tr></tbody></table>
    
-   `[setMinPitch(_:completionHandler:)](#/s:11MapTilerSDK9MTMapViewC11setMinPitch_17completionHandlerySdSg_ys6ResultOyytAA7MTErrorOGcSgtF)`
    
    Sets or clears the map’s minimum pitch.
    
    If the map’s current pitch is lower than the new minimum, the map will pitch to the new minimum. If null is provided, the function removes the current minimum pitch (i.e. sets it to 0).
    
    #### Declaration
    
    Swift
    
    ```
    @available(iOS, deprecated: 16.0, message: "Prefer the async version for modern concurrency handling")
    @MainActor
    public func setMinPitch(_ minPitch: Double?, completionHandler: ((Result<Void, MTError>) -> Void)? = nil)
    ```
    
    #### Parameters
    
    <table class="graybox"><tbody><tr><td><code><em>minPitch</em></code></td><td><div><p>The minimum pitch to set (0-85)</p></div></td></tr><tr><td><code><em>completionHandler</em></code></td><td><div><p>A handler block to execute when function finishes.</p></div></td></tr></tbody></table>
    
-   `[setPitchLimits(with:completionHandler:)](#/s:11MapTilerSDK9MTMapViewC14setPitchLimits4with17completionHandleryAA18MTPitchLimitHelperC_ys6ResultOyytAA7MTErrorOGcSgtF)`
    
    Sets or clears the pitch limits.
    
    #### Declaration
    
    Swift
    
    ```
    @available(iOS, deprecated: 16.0, message: "Prefer the async version for modern concurrency handling")
    @MainActor
    public func setPitchLimits(
        with pitchLimitHelper: MTPitchLimitHelper,
        completionHandler: ((Result<Void, MTError>) -> Void)? = nil
    )
    ```
    
    #### Parameters
    
    <table class="graybox"><tbody><tr><td><code><em>pitchLimitHelper</em></code></td><td><div><p>Helper to use for setting the limits.</p></div></td></tr><tr><td><code><em>completionHandler</em></code></td><td><div><p>A handler block to execute when function finishes.</p></div></td></tr></tbody></table>
    
-   `[setMinZoom(_:completionHandler:)](#/s:11MapTilerSDK9MTMapViewC10setMinZoom_17completionHandlerySdSg_ys6ResultOyytAA7MTErrorOGcSgtF)`
    
    Sets or clears the map’s minimum zoom.
    
    If the map’s current zoom level is lower than the new minimum, the map will zoom to the new minimum. If null is provided, the function removes the current minimum zoom (i.e. sets it to -2).
    
    #### Declaration
    
    Swift
    
    ```
    @available(iOS, deprecated: 16.0, message: "Prefer the async version for modern concurrency handling")
    @MainActor
    public func setMinZoom(_ minZoom: Double?, completionHandler: ((Result<Void, MTError>) -> Void)? = nil)
    ```
    
    #### Parameters
    
    <table class="graybox"><tbody><tr><td><code><em>minZoom</em></code></td><td><div><p>The minimum zoom level to set (-2 - 24).</p></div></td></tr><tr><td><code><em>completionHandler</em></code></td><td><div><p>A handler block to execute when function finishes.</p></div></td></tr></tbody></table>
    
-   `[setMaxBounds(_:completionHandler:)](#/s:11MapTilerSDK9MTMapViewC12setMaxBounds_17completionHandleryAA8MTBoundsVSg_ys6ResultOyytAA7MTErrorOGcSgtF)`
    
    Sets or clears the map’s maximum bounds constraint.
    
    #### Declaration
    
    Swift
    
    ```
    @available(iOS, deprecated: 16.0, message: "Prefer the async version for modern concurrency handling")
    @MainActor
    public func setMaxBounds(
        _ bounds: MTBounds?,
        completionHandler: ((Result<Void, MTError>) -> Void)? = nil
    )
    ```
    
    #### Parameters
    
    <table class="graybox"><tbody><tr><td><code><em>bounds</em></code></td><td><div><p>The bounds to constrain panning to, or <code>nil</code> to remove the constraint.</p></div></td></tr><tr><td><code><em>completionHandler</em></code></td><td><div><p>A handler block to execute when function finishes.</p></div></td></tr></tbody></table>
    
-   `[setPitch(_:completionHandler:)](#/s:11MapTilerSDK9MTMapViewC8setPitch_17completionHandlerySd_ys6ResultOyytAA7MTErrorOGcSgtF)`
    
    Sets the map’s pitch (tilt).
    
    #### Declaration
    
    Swift
    
    ```
    @available(iOS, deprecated: 16.0, message: "Prefer the async version for modern concurrency handling")
    @MainActor
    public func setPitch(_ pitch: Double, completionHandler: ((Result<Void, MTError>) -> Void)? = nil)
    ```
    
    #### Parameters
    
    <table class="graybox"><tbody><tr><td><code><em>pitch</em></code></td><td><div><p>The pitch to set, measured in degrees away from the plane of the screen (0-60).</p></div></td></tr><tr><td><code><em>completionHandler</em></code></td><td><div><p>A handler block to execute when function finishes.</p></div></td></tr></tbody></table>
    
-   `[setRoll(_:completionHandler:)](#/s:11MapTilerSDK9MTMapViewC7setRoll_17completionHandlerySd_ys6ResultOyytAA7MTErrorOGcSgtF)`
    
    Sets the map’s roll angle.
    
    Note
    
    Triggers the following events: moveStart, moveEnd, rollStart, and rollEnd.
    
    #### Declaration
    
    Swift
    
    ```
    @available(iOS, deprecated: 16.0, message: "Prefer the async version for modern concurrency handling")
    @MainActor
    public func setRoll(_ roll: Double, completionHandler: ((Result<Void, MTError>) -> Void)? = nil)
    ```
    
    #### Parameters
    
    <table class="graybox"><tbody><tr><td><code><em>roll</em></code></td><td><div><p>The roll to set, measured in degrees about the camera boresight.</p></div></td></tr><tr><td><code><em>completionHandler</em></code></td><td><div><p>A handler block to execute when function finishes.</p></div></td></tr></tbody></table>
    
-   `[setViewport(with:zoomLevel:)](#/s:11MapTilerSDK9MTMapViewC11setViewport4with9zoomLevelyAA0D12CameraHelperC_SdSgtF)`
    
    Set combination of center, bearing, pitch, roll and elevation.
    
    #### Declaration
    
    Swift
    
    ```
    @MainActor
    public func setViewport(with cameraHelper: MTMapCameraHelper, zoomLevel: Double? = nil)
    ```
    
    #### Parameters
    
    <table class="graybox"><tbody><tr><td><code><em>cameraHelper</em></code></td><td><div><p>Helper to use for setting the viewport.</p></div></td></tr><tr><td><code><em>zoomLevel</em></code></td><td><div><p>Desired zoom level to set.</p></div></td></tr></tbody></table>
    
-   `[getPitch(completionHandler:)](#/s:11MapTilerSDK9MTMapViewC8getPitch17completionHandleryys6ResultOySdAA7MTErrorOGc_tF)`
    
    Returns the map’s current pitch (tilt).
    
    The map’s current pitch, measured in degrees away from the plane of the screen.
    
    #### Declaration
    
    Swift
    
    ```
    @available(iOS, deprecated: 16.0, message: "Prefer the async version for modern concurrency handling")
    @MainActor
    public func getPitch(completionHandler: @escaping (Result<Double, MTError>) -> Void)
    ```
    
    #### Parameters
    
    <table class="graybox"><tbody><tr><td><code><em>completionHandler</em></code></td><td><div><p>A handler block to execute when function finishes.</p></div></td></tr></tbody></table>
    
-   `[getMaxPitch(completionHandler:)](#/s:11MapTilerSDK9MTMapViewC11getMaxPitch17completionHandleryys6ResultOySdAA7MTErrorOGc_tF)`
    
    Returns the map’s maximum pitch (tilt).
    
    The map’s maximum pitch, measured in degrees away from the plane of the screen.
    
    #### Declaration
    
    Swift
    
    ```
    @available(iOS, deprecated: 16.0, message: "Prefer the async version for modern concurrency handling")
    @MainActor
    public func getMaxPitch(completionHandler: @escaping (Result<Double, MTError>) -> Void)
    ```
    
    #### Parameters
    
    <table class="graybox"><tbody><tr><td><code><em>completionHandler</em></code></td><td><div><p>A handler block to execute when function finishes.</p></div></td></tr></tbody></table>
    
-   `[getMaxZoom(completionHandler:)](#/s:11MapTilerSDK9MTMapViewC10getMaxZoom17completionHandleryys6ResultOySdAA7MTErrorOGc_tF)`
    
    Returns the map’s maximum zoom.
    
    The map’s maximum zoom level.
    
    #### Declaration
    
    Swift
    
    ```
    @available(iOS, deprecated: 16.0, message: "Prefer the async version for modern concurrency handling")
    @MainActor
    public func getMaxZoom(completionHandler: @escaping (Result<Double, MTError>) -> Void)
    ```
    
    #### Parameters
    
    <table class="graybox"><tbody><tr><td><code><em>completionHandler</em></code></td><td><div><p>A handler block to execute when function finishes.</p></div></td></tr></tbody></table>
    
-   `[getMinPitch(completionHandler:)](#/s:11MapTilerSDK9MTMapViewC11getMinPitch17completionHandleryys6ResultOySdAA7MTErrorOGc_tF)`
    
    Returns the map’s minimum pitch (tilt).
    
    The map’s minimum pitch, measured in degrees away from the plane of the screen.
    
    #### Declaration
    
    Swift
    
    ```
    @available(iOS, deprecated: 16.0, message: "Prefer the async version for modern concurrency handling")
    @MainActor
    public func getMinPitch(completionHandler: @escaping (Result<Double, MTError>) -> Void)
    ```
    
    #### Parameters
    
    <table class="graybox"><tbody><tr><td><code><em>completionHandler</em></code></td><td><div><p>A handler block to execute when function finishes.</p></div></td></tr></tbody></table>
    
-   `[getMinZoom(completionHandler:)](#/s:11MapTilerSDK9MTMapViewC10getMinZoom17completionHandleryys6ResultOySdAA7MTErrorOGc_tF)`
    
    Returns the map’s minimum zoom.
    
    The map’s minimum zoom level.
    
    #### Declaration
    
    Swift
    
    ```
    @available(iOS, deprecated: 16.0, message: "Prefer the async version for modern concurrency handling")
    @MainActor
    public func getMinZoom(completionHandler: @escaping (Result<Double, MTError>) -> Void)
    ```
    
    #### Parameters
    
    <table class="graybox"><tbody><tr><td><code><em>completionHandler</em></code></td><td><div><p>A handler block to execute when function finishes.</p></div></td></tr></tbody></table>
    
-   `[panBy(_:completionHandler:)](#/s:11MapTilerSDK9MTMapViewC5panBy_17completionHandleryAA7MTPointV_ys6ResultOyytAA7MTErrorOGcSgtF)`
    
    Pans the map by the specified offset.
    
    #### Declaration
    
    Swift
    
    ```
    @available(iOS, deprecated: 16.0, message: "Prefer the async version for modern concurrency handling")
    @MainActor
    public func panBy(_ offset: MTPoint, completionHandler: ((Result<Void, MTError>) -> Void)? = nil)
    ```
    
    #### Parameters
    
    <table class="graybox"><tbody><tr><td><code><em>offset</em></code></td><td><div><p>The x and y coordinates by which to pan the map.</p></div></td></tr><tr><td><code><em>completionHandler</em></code></td><td><div><p>A handler block to execute when function finishes.</p></div></td></tr></tbody></table>
    
-   `[panTo(_:completionHandler:)](#/s:11MapTilerSDK9MTMapViewC5panTo_17completionHandlerySo22CLLocationCoordinate2DV_ys6ResultOyytAA7MTErrorOGcSgtF)`
    
    Pans the map to the specified location with an animated transition.
    
    #### Declaration
    
    Swift
    
    ```
    @available(iOS, deprecated: 16.0, message: "Prefer the async version for modern concurrency handling")
    @MainActor
    public func panTo(
        _ coordinates: CLLocationCoordinate2D,
        completionHandler: ((Result<Void, MTError>) -> Void)? = nil
    )
    ```
    
    #### Parameters
    
    <table class="graybox"><tbody><tr><td><code><em>coordinates</em></code></td><td><div><p>The location to pan the map to.</p></div></td></tr><tr><td><code><em>completionHandler</em></code></td><td><div><p>A handler block to execute when function finishes.</p></div></td></tr></tbody></table>
    
-   `[stop(completionHandler:)](#/s:11MapTilerSDK9MTMapViewC4stop17completionHandleryys6ResultOyytAA7MTErrorOGcSg_tF)`
    
    Stops any ongoing animated transition.
    
    #### Declaration
    
    Swift
    
    ```
    @available(iOS, deprecated: 16.0, message: "Prefer the async version for modern concurrency handling")
    @MainActor
    public func stop(completionHandler: ((Result<Void, MTError>) -> Void)? = nil)
    ```
    
    #### Parameters
    
    <table class="graybox"><tbody><tr><td><code><em>completionHandler</em></code></td><td><div><p>A handler block to execute when function finishes.</p></div></td></tr></tbody></table>
    
-   `[snapToNorth(animationOptions:completionHandler:)](#/s:11MapTilerSDK9MTMapViewC11snapToNorth16animationOptions17completionHandleryAA011MTAnimationJ0VSg_ys6ResultOyytAA7MTErrorOGcSgtF)`
    
    Snaps the map so that north is up.
    
    #### Declaration
    
    Swift
    
    ```
    @available(iOS, deprecated: 16.0, message: "Prefer the async version for modern concurrency handling")
    @MainActor
    public func snapToNorth(
        animationOptions: MTAnimationOptions? = nil,
        completionHandler: ((Result<Void, MTError>) -> Void)? = nil
    )
    ```
    
    #### Parameters
    
    <table class="graybox"><tbody><tr><td><code><em>animationOptions</em></code></td><td><div><p>Animation options.</p></div></td></tr><tr><td><code><em>completionHandler</em></code></td><td><div><p>A handler block to execute when function finishes.</p></div></td></tr></tbody></table>
    
-   `[resetNorth(animationOptions:completionHandler:)](#/s:11MapTilerSDK9MTMapViewC10resetNorth16animationOptions17completionHandleryAA011MTAnimationI0VSg_ys6ResultOyytAA7MTErrorOGcSgtF)`
    
    Resets the map bearing to 0 degrees.
    
    #### Declaration
    
    Swift
    
    ```
    @available(iOS, deprecated: 16.0, message: "Prefer the async version for modern concurrency handling")
    @MainActor
    public func resetNorth(
        animationOptions: MTAnimationOptions? = nil,
        completionHandler: ((Result<Void, MTError>) -> Void)? = nil
    )
    ```
    
    #### Parameters
    
    <table class="graybox"><tbody><tr><td><code><em>animationOptions</em></code></td><td><div><p>Animation options.</p></div></td></tr><tr><td><code><em>completionHandler</em></code></td><td><div><p>A handler block to execute when function finishes.</p></div></td></tr></tbody></table>
    
-   `[resetNorthPitch(animationOptions:completionHandler:)](#/s:11MapTilerSDK9MTMapViewC15resetNorthPitch16animationOptions17completionHandleryAA011MTAnimationJ0VSg_ys6ResultOyytAA7MTErrorOGcSgtF)`
    
    Resets the map bearing to 0 and pitch to default.
    
    #### Declaration
    
    Swift
    
    ```
    @available(iOS, deprecated: 16.0, message: "Prefer the async version for modern concurrency handling")
    @MainActor
    public func resetNorthPitch(
        animationOptions: MTAnimationOptions? = nil,
        completionHandler: ((Result<Void, MTError>) -> Void)? = nil
    )
    ```
    
    #### Parameters
    
    <table class="graybox"><tbody><tr><td><code><em>animationOptions</em></code></td><td><div><p>Animation options.</p></div></td></tr><tr><td><code><em>completionHandler</em></code></td><td><div><p>A handler block to execute when function finishes.</p></div></td></tr></tbody></table>
    
-   `[getCenter(completionHandler:)](#/s:11MapTilerSDK9MTMapViewC9getCenter17completionHandleryys6ResultOySo22CLLocationCoordinate2DVAA7MTErrorOGc_tF)`
    
    Returns the map’s current center.
    
    The map’s current geographical center.
    
    #### Declaration
    
    Swift
    
    ```
    @available(iOS, deprecated: 16.0, message: "Prefer the async version for modern concurrency handling")
    @MainActor
    public func getCenter(completionHandler: @escaping (Result<CLLocationCoordinate2D, MTError>) -> Void)
    ```
    
-   `[getBounds(completionHandler:)](#/s:11MapTilerSDK9MTMapViewC9getBounds17completionHandleryys6ResultOyAA8MTBoundsVAA7MTErrorOGc_tF)`
    
    Returns the map’s current geographic bounds.
    
    #### Declaration
    
    Swift
    
    ```
    @available(iOS, deprecated: 16.0, message: "Prefer the async version for modern concurrency handling")
    @MainActor
    public func getBounds(completionHandler: @escaping (Result<MTBounds, MTError>) -> Void)
    ```
    
    #### Parameters
    
    <table class="graybox"><tbody><tr><td><code><em>completionHandler</em></code></td><td><div><p>A handler block to execute when function finishes.</p></div></td></tr></tbody></table>
    
-   `[getMaxBounds(completionHandler:)](#/s:11MapTilerSDK9MTMapViewC12getMaxBounds17completionHandleryys6ResultOyAA8MTBoundsVSgAA7MTErrorOGc_tF)`
    
    Returns the maximum bounds constraint applied to the map, if any.
    
    #### Declaration
    
    Swift
    
    ```
    @available(iOS, deprecated: 16.0, message: "Prefer the async version for modern concurrency handling")
    @MainActor
    public func getMaxBounds(completionHandler: @escaping (Result<MTBounds?, MTError>) -> Void)
    ```
    
    #### Parameters
    
    <table class="graybox"><tbody><tr><td><code><em>completionHandler</em></code></td><td><div><p>A handler block to execute when function finishes.</p></div></td></tr></tbody></table>
    
-   `[getCenterClampedToGround(completionHandler:)](#/s:11MapTilerSDK9MTMapViewC24getCenterClampedToGround17completionHandleryys6ResultOySbAA7MTErrorOGc_tF)`
    
    Returns whether the map’s center is clamped to the ground.
    
    #### Declaration
    
    Swift
    
    ```
    @available(iOS, deprecated: 16.0, message: "Prefer the async version for modern concurrency handling")
    @MainActor
    public func getCenterClampedToGround(completionHandler: @escaping (Result<Bool, MTError>) -> Void)
    ```
    
    #### Parameters
    
    <table class="graybox"><tbody><tr><td><code><em>completionHandler</em></code></td><td><div><p>A handler block to execute when function finishes.</p></div></td></tr></tbody></table>
    
-   `[getCenterElevation(completionHandler:)](#/s:11MapTilerSDK9MTMapViewC18getCenterElevation17completionHandleryys6ResultOySdAA7MTErrorOGc_tF)`
    
    Returns the elevation of the map’s center point, in meters above sea level.
    
    #### Declaration
    
    Swift
    
    ```
    @available(iOS, deprecated: 16.0, message: "Prefer the async version for modern concurrency handling")
    @MainActor
    public func getCenterElevation(completionHandler: @escaping (Result<Double, MTError>) -> Void)
    ```
    
    #### Parameters
    
    <table class="graybox"><tbody><tr><td><code><em>completionHandler</em></code></td><td><div><p>A handler block to execute when function finishes.</p></div></td></tr></tbody></table>
    
-   `[getCameraTargetElevation(completionHandler:)](#/s:11MapTilerSDK9MTMapViewC24getCameraTargetElevation17completionHandleryys6ResultOySdAA7MTErrorOGc_tF)`
    
    Returns the elevation for the point where the camera is looking, in meters above sea level multiplied by exaggeration.
    
    #### Declaration
    
    Swift
    
    ```
    @available(iOS, deprecated: 16.0, message: "Prefer the async version for modern concurrency handling")
    @MainActor
    public func getCameraTargetElevation(completionHandler: @escaping (Result<Double, MTError>) -> Void)
    ```
    
    #### Parameters
    
    <table class="graybox"><tbody><tr><td><code><em>completionHandler</em></code></td><td><div><p>A handler block to execute when function finishes.</p></div></td></tr></tbody></table>
    
-   `[project(coordinates:completionHandler:)](#/s:11MapTilerSDK9MTMapViewC7project11coordinates17completionHandlerySo22CLLocationCoordinate2DV_ys6ResultOyAhA7MTErrorOGctF)`
    
    Project coordinates to point on the container.
    
    #### Declaration
    
    Swift
    
    ```
    @available(iOS, deprecated: 16.0, message: "Prefer the async version for modern concurrency handling")
    @MainActor
    public func project(
        coordinates: CLLocationCoordinate2D,
        completionHandler: @escaping (Result<CLLocationCoordinate2D, MTError>) -> Void
    )
    ```
    
    #### Parameters
    
    <table class="graybox"><tbody><tr><td><code><em>coordinates</em></code></td><td><div><p>The location to project.</p></div></td></tr><tr><td><code><em>completionHandler</em></code></td><td><div><p>A handler block to execute when function finishes.</p></div></td></tr></tbody></table>
    
-   `[unproject(point:completionHandler:)](#/s:11MapTilerSDK9MTMapViewC9unproject5point17completionHandleryAA7MTPointV_ys6ResultOySo22CLLocationCoordinate2DVAA7MTErrorOGctF)`
    
    Unproject screen coordinates to geographical coordinates.
    
    #### Declaration
    
    Swift
    
    ```
    @available(iOS, deprecated: 16.0, message: "Prefer the async version for modern concurrency handling")
    @MainActor
    public func unproject(
        point: MTPoint,
        completionHandler: @escaping (Result<CLLocationCoordinate2D, MTError>) -> Void
    )
    ```
    
    #### Parameters
    
    <table class="graybox"><tbody><tr><td><code><em>point</em></code></td><td><div><p>The screen coordinates to unproject.</p></div></td></tr><tr><td><code><em>completionHandler</em></code></td><td><div><p>A handler block to execute when function finishes.</p></div></td></tr></tbody></table>
    
-   `[pointAdd(point1:point2:completionHandler:)](#/s:11MapTilerSDK9MTMapViewC8pointAdd6point16point217completionHandleryAA7MTPointV_AIys6ResultOyAiA7MTErrorOGctF)`
    
    Adds another point to this point’s x and y coordinates, yielding a new point.
    
    #### Declaration
    
    Swift
    
    ```
    @available(iOS, deprecated: 16.0, message: "Prefer the async version for modern concurrency handling")
    @MainActor
    public func pointAdd(
        point1: MTPoint,
        point2: MTPoint,
        completionHandler: @escaping (Result<MTPoint, MTError>) -> Void
    )
    ```
    
    #### Parameters
    
    <table class="graybox"><tbody><tr><td><code><em>point1</em></code></td><td><div><p>The first point.</p></div></td></tr><tr><td><code><em>point2</em></code></td><td><div><p>The second point to add to the first point.</p></div></td></tr><tr><td><code><em>completionHandler</em></code></td><td><div><p>A handler block to execute when function finishes.</p></div></td></tr></tbody></table>
    
-   `[wrap(coordinates:completionHandler:)](#/s:11MapTilerSDK9MTMapViewC4wrap11coordinates17completionHandlerySo22CLLocationCoordinate2DV_ys6ResultOyAhA7MTErrorOGctF)`
    
    Returns a new `CLLocationCoordinate2D` object whose longitude is wrapped to the range (-180, 180).
    
    #### Declaration
    
    Swift
    
    ```
    @available(iOS, deprecated: 16.0, message: "Prefer the async version for modern concurrency handling")
    @MainActor
    public func wrap(
        coordinates: CLLocationCoordinate2D,
        completionHandler: @escaping (Result<CLLocationCoordinate2D, MTError>) -> Void
    )
    ```
    
    #### Parameters
    
    <table class="graybox"><tbody><tr><td><code><em>coordinates</em></code></td><td><div><p>The coordinates to wrap.</p></div></td></tr><tr><td><code><em>completionHandler</em></code></td><td><div><p>A handler block to execute when function finishes.</p></div></td></tr></tbody></table>
    
-   `[lngLatToArray(coordinates:completionHandler:)](#/s:11MapTilerSDK9MTMapViewC13lngLatToArray11coordinates17completionHandlerySo22CLLocationCoordinate2DV_ys6ResultOySaySdGAA7MTErrorOGctF)`
    
    Converts a `CLLocationCoordinate2D` object to an array of doubles `[longitude, latitude]`.
    
    #### Declaration
    
    Swift
    
    ```
    @available(iOS, deprecated: 16.0, message: "Prefer the async version for modern concurrency handling")
    @MainActor
    public func lngLatToArray(
        coordinates: CLLocationCoordinate2D,
        completionHandler: @escaping (Result<[Double], MTError>) -> Void
    )
    ```
    
    #### Parameters
    
    <table class="graybox"><tbody><tr><td><code><em>coordinates</em></code></td><td><div><p>The coordinates to convert.</p></div></td></tr><tr><td><code><em>completionHandler</em></code></td><td><div><p>A handler block to execute when function finishes.</p></div></td></tr></tbody></table>
    
-   `[lngLatToString(coordinates:completionHandler:)](#/s:11MapTilerSDK9MTMapViewC14lngLatToString11coordinates17completionHandlerySo22CLLocationCoordinate2DV_ys6ResultOySSAA7MTErrorOGctF)`
    
    Converts a `CLLocationCoordinate2D` object to a string representation.
    
    #### Declaration
    
    Swift
    
    ```
    @available(iOS, deprecated: 16.0, message: "Prefer the async version for modern concurrency handling")
    @MainActor
    public func lngLatToString(
        coordinates: CLLocationCoordinate2D,
        completionHandler: @escaping (Result<String, MTError>) -> Void
    )
    ```
    
    #### Parameters
    
    <table class="graybox"><tbody><tr><td><code><em>coordinates</em></code></td><td><div><p>The coordinates to convert.</p></div></td></tr><tr><td><code><em>completionHandler</em></code></td><td><div><p>A handler block to execute when function finishes.</p></div></td></tr></tbody></table>
    
-   `[getBearing(completionHandler:)](#/s:11MapTilerSDK9MTMapViewC10getBearing17completionHandleryys6ResultOySdAA7MTErrorOGc_tF)`
    
    Returns the map’s current bearing.
    
    #### Declaration
    
    Swift
    
    ```
    @available(iOS, deprecated: 16.0, message: "Prefer the async version for modern concurrency handling")
    @MainActor
    public func getBearing(completionHandler: @escaping (Result<Double, MTError>) -> Void)
    ```
    
    #### Parameters
    
    <table class="graybox"><tbody><tr><td><code><em>completionHandler</em></code></td><td><div><p>A handler block to execute when function finishes.</p></div></td></tr></tbody></table>
    
-   `[getRoll(completionHandler:)](#/s:11MapTilerSDK9MTMapViewC7getRoll17completionHandleryys6ResultOySdAA7MTErrorOGc_tF)`
    
    Returns the map’s current roll.
    
    #### Declaration
    
    Swift
    
    ```
    @available(iOS, deprecated: 16.0, message: "Prefer the async version for modern concurrency handling")
    @MainActor
    public func getRoll(completionHandler: @escaping (Result<Double, MTError>) -> Void)
    ```
    
    #### Parameters
    
    <table class="graybox"><tbody><tr><td><code><em>completionHandler</em></code></td><td><div><p>A handler block to execute when function finishes.</p></div></td></tr></tbody></table>
    
-   `[isMoving(completionHandler:)](#/s:11MapTilerSDK9MTMapViewC8isMoving17completionHandleryys6ResultOySbAA7MTErrorOGc_tF)`
    
    Returns true while any camera movement is active.
    
    #### Declaration
    
    Swift
    
    ```
    @available(iOS, deprecated: 16.0, message: "Prefer the async version for modern concurrency handling")
    @MainActor
    public func isMoving(completionHandler: @escaping (Result<Bool, MTError>) -> Void)
    ```
    
    #### Parameters
    
    <table class="graybox"><tbody><tr><td><code><em>completionHandler</em></code></td><td><div><p>A handler block to execute when function finishes.</p></div></td></tr></tbody></table>
    
-   `[isRotating(completionHandler:)](#/s:11MapTilerSDK9MTMapViewC10isRotating17completionHandleryys6ResultOySbAA7MTErrorOGc_tF)`
    
    Returns true while the map is rotating.
    
    #### Declaration
    
    Swift
    
    ```
    @available(iOS, deprecated: 16.0, message: "Prefer the async version for modern concurrency handling")
    @MainActor
    public func isRotating(completionHandler: @escaping (Result<Bool, MTError>) -> Void)
    ```
    
    #### Parameters
    
    <table class="graybox"><tbody><tr><td><code><em>completionHandler</em></code></td><td><div><p>A handler block to execute when function finishes.</p></div></td></tr></tbody></table>
    
-   `[isZooming(completionHandler:)](#/s:11MapTilerSDK9MTMapViewC9isZooming17completionHandleryys6ResultOySbAA7MTErrorOGc_tF)`
    
    Returns true while the map is zooming.
    
    #### Declaration
    
    Swift
    
    ```
    @available(iOS, deprecated: 16.0, message: "Prefer the async version for modern concurrency handling")
    @MainActor
    public func isZooming(completionHandler: @escaping (Result<Bool, MTError>) -> Void)
    ```
    
    #### Parameters
    
    <table class="graybox"><tbody><tr><td><code><em>completionHandler</em></code></td><td><div><p>A handler block to execute when function finishes.</p></div></td></tr></tbody></table>
    
-   `[setBearing(_:)](#/s:11MapTilerSDK9MTMapViewC10setBearingyySdYaF)` Asynchronous
    
    Sets the bearing of the map.
    
    The bearing is the compass direction that is “up”; for example, a bearing of 90° orients the map so that east is up.
    
    #### Declaration
    
    Swift
    
    ```
    @MainActor
    public func setBearing(_ bearing: Double) async
    ```
    
    #### Parameters
    
    <table class="graybox"><tbody><tr><td><code><em>bearing</em></code></td><td><div><p>The desired bearing.</p></div></td></tr></tbody></table>
    
-   `[rotateTo(_:options:)](#/s:11MapTilerSDK9MTMapViewC8rotateTo_7optionsySd_AA18MTAnimationOptionsVSgtYaF)` Asynchronous
    
    Rotates the map to a given bearing with an optional animated transition.
    
    #### Declaration
    
    Swift
    
    ```
    @MainActor
    public func rotateTo(_ bearing: Double, options: MTAnimationOptions? = nil) async
    ```
    
    #### Parameters
    
    <table class="graybox"><tbody><tr><td><code><em>bearing</em></code></td><td><div><p>The desired bearing.</p></div></td></tr><tr><td><code><em>options</em></code></td><td><div><p>Animation options.</p></div></td></tr></tbody></table>
    
-   `[setCenter(_:)](#/s:11MapTilerSDK9MTMapViewC9setCenteryySo22CLLocationCoordinate2DVYaF)` Asynchronous
    
    Sets the map’s geographical centerpoint.
    
    #### Declaration
    
    Swift
    
    ```
    @MainActor
    public func setCenter(_ center: CLLocationCoordinate2D) async
    ```
    
    #### Parameters
    
    <table class="graybox"><tbody><tr><td><code><em>center</em></code></td><td><div><p>The desired center coordinate.</p></div></td></tr></tbody></table>
    
-   `[flyTo(_:options:animationOptions:)](#/s:11MapTilerSDK9MTMapViewC5flyTo_7options16animationOptionsySo22CLLocationCoordinate2DV_AA05MTFlygJ0VSgAA011MTAnimationJ0VSgtYaF)` Asynchronous
    
    Changes any combination of center, zoom, bearing, and pitch.
    
    The animation seamlessly incorporates zooming and panning to help the user maintain her bearings even after traversing a great distance.
    
    Note
    
    The animation will be skipped, and this will behave equivalently to jumpTo if the user has the reduced motion accessibility feature enabled, unless options includes essential: true.
    
    #### Declaration
    
    Swift
    
    ```
    @MainActor
    public func flyTo(
        _ center: CLLocationCoordinate2D,
        options: MTFlyToOptions?,
        animationOptions: MTAnimationOptions?
    ) async
    ```
    
    #### Parameters
    
    <table class="graybox"><tbody><tr><td><code><em>center</em></code></td><td><div><p>The desired center coordinate.</p></div></td></tr><tr><td><code><em>options</em></code></td><td><div><p>Custom options to use.</p></div></td></tr><tr><td><code><em>animationOptions</em></code></td><td><div><p>Optional animation options to use.</p></div></td></tr><tr><td><code><em>completionHandler</em></code></td><td><div><p>A handler block to execute when function finishes.</p></div></td></tr></tbody></table>
    
-   `[easeTo(_:options:animationOptions:)](#/s:11MapTilerSDK9MTMapViewC6easeTo_7options16animationOptionsySo22CLLocationCoordinate2DV_AA08MTCameraJ0VSgAA011MTAnimationJ0VSgtYaF)` Asynchronous
    
    Changes any combination of center, zoom, bearing, pitch, and padding.
    
    The map will retain its current values for any details not specified in options.
    
    Note
    
    The transition will happen instantly if the user has enabled the reduced motion accessibility feature, unless options includes essential: true.
    
    #### Declaration
    
    Swift
    
    ```
    @MainActor
    public func easeTo(
        _ center: CLLocationCoordinate2D,
        options: MTCameraOptions?,
        animationOptions: MTAnimationOptions?
    ) async
    ```
    
    #### Parameters
    
    <table class="graybox"><tbody><tr><td><code><em>center</em></code></td><td><div><p>The desired center coordinate.</p></div></td></tr><tr><td><code><em>options</em></code></td><td><div><p>Custom options to use.</p></div></td></tr><tr><td><code><em>animationOptions</em></code></td><td><div><p>Optional animation options to use.</p></div></td></tr><tr><td><code><em>completionHandler</em></code></td><td><div><p>A handler block to execute when function finishes.</p></div></td></tr></tbody></table>
    
-   `[jumpTo(_:options:)](#/s:11MapTilerSDK9MTMapViewC6jumpTo_7optionsySo22CLLocationCoordinate2DV_AA15MTCameraOptionsVSgtYaF)` Asynchronous
    
    Changes any combination of center, zoom, bearing, and pitch, without an animated transition.
    
    #### Declaration
    
    Swift
    
    ```
    @MainActor
    public func jumpTo(_ center: CLLocationCoordinate2D, options: MTCameraOptions?) async
    ```
    
-   `[fitBounds(_:options:)](#/s:11MapTilerSDK9MTMapViewC9fitBounds_7optionsyAA8MTBoundsV_AA05MTFitG7OptionsVSgtYaF)` Asynchronous
    
    Fits the map so the provided bounds are fully visible within the viewport.
    
    #### Declaration
    
    Swift
    
    ```
    @MainActor
    public func fitBounds(_ bounds: MTBounds, options fitOptions: MTFitBoundsOptions? = nil) async
    ```
    
    #### Parameters
    
    <table class="graybox"><tbody><tr><td><code><em>bounds</em></code></td><td><div><p>Geographic bounds to display.</p></div></td></tr><tr><td><code><em>fitOptions</em></code></td><td><div><p>Additional configuration that controls the fitting animation.</p></div></td></tr></tbody></table>
    
-   `[fitScreenCoordinates(_:_:_:options:)](#/s:11MapTilerSDK9MTMapViewC20fitScreenCoordinates___7optionsyAA7MTPointV_AGSdAA18MTFitBoundsOptionsVSgtYaF)` Asynchronous
    
    Pans, rotates and zooms the map to to fit the box made by points p0 and p1 once the map is rotated to the specified bearing. To zoom without rotating, pass in the current map bearing.
    
    #### Declaration
    
    Swift
    
    ```
    @MainActor
    public func fitScreenCoordinates(
        _ p0: MTPoint,
        _ p1: MTPoint,
        _ bearing: Double,
        options fitOptions: MTFitBoundsOptions? = nil
    ) async
    ```
    
    #### Parameters
    
    <table class="graybox"><tbody><tr><td><code><em>p0</em></code></td><td><div><p>First point on screen.</p></div></td></tr><tr><td><code><em>p1</em></code></td><td><div><p>Second point on screen.</p></div></td></tr><tr><td><code><em>bearing</em></code></td><td><div><p>Desired map bearing at end of animation.</p></div></td></tr><tr><td><code><em>fitOptions</em></code></td><td><div><p>Additional configuration that controls the fitting animation.</p></div></td></tr></tbody></table>
    
-   `[getPadding()](#/s:11MapTilerSDK9MTMapViewC10getPaddingAA16MTPaddingOptionsVyYaKF)` Asynchronous
    
    Sets the padding in pixels around the viewport. Returns the current viewport padding.
    
    #### Declaration
    
    Swift
    
    ```
    @MainActor
    public func getPadding() async throws -> MTPaddingOptions
    ```
    
    #### Return Value
    
    Current padding as MTPaddingOptions
    
-   `[setPadding(_:)](#/s:11MapTilerSDK11MTNavigableP10setPaddingyyAA16MTPaddingOptionsVYaF)` Asynchronous
    
    #### Declaration
    
    Swift
    
    ```
    @MainActor
    public func setPadding(_ options: MTPaddingOptions) async
    ```
    
-   `[fitToIpBounds()](#/s:11MapTilerSDK9MTMapViewC13fitToIpBoundsyyYaF)` Asynchronous
    
    Fits the map to the bounds inferred from the current IP address.
    
    #### Declaration
    
    Swift
    
    ```
    @MainActor
    public func fitToIpBounds() async
    ```
    
-   `[centerOnIpPoint()](#/s:11MapTilerSDK9MTMapViewC15centerOnIpPointyyYaF)` Asynchronous
    
    Centers the map on the location inferred from the current IP address.
    
    #### Declaration
    
    Swift
    
    ```
    @MainActor
    public func centerOnIpPoint() async
    ```
    
-   `[setIsCenterClampedToGround(_:)](#/s:11MapTilerSDK9MTMapViewC26setIsCenterClampedToGroundyySbYaF)` Asynchronous
    
    Sets the value of centerClampedToGround.
    
    If true, the elevation of the center point will automatically be set to the terrain elevation (or zero if terrain is not enabled). If false, the elevation of the center point will default to sea level and will not automatically update. Needs to be set to false to keep the camera above ground when pitch > 90 degrees.
    
    Note
    
    Defaults to true.
    
    #### Declaration
    
    Swift
    
    ```
    @MainActor
    public func setIsCenterClampedToGround(_ isCenterClampedToGround: Bool) async
    ```
    
    #### Parameters
    
    <table class="graybox"><tbody><tr><td><code><em>isCenterClampedToGround</em></code></td><td><div><p>The boolean value indicating if center will be clamped to ground.</p></div></td></tr></tbody></table>
    
-   `[setCenterElevation(_:)](#/s:11MapTilerSDK9MTMapViewC18setCenterElevationyySdYaF)` Asynchronous
    
    Sets the elevation of the map’s center point, in meters above sea level.
    
    Note
    
    Triggers the following events: moveStart and moveEnd.
    
    #### Declaration
    
    Swift
    
    ```
    @MainActor
    public func setCenterElevation(_ elevation: Double) async
    ```
    
    #### Parameters
    
    <table class="graybox"><tbody><tr><td><code><em>elevation</em></code></td><td><div><p>The desired elevation.</p></div></td></tr></tbody></table>
    
-   `[setMaxPitch(_:)](#/s:11MapTilerSDK9MTMapViewC11setMaxPitchyySdSgYaKF)` Asynchronous
    
    Sets or clears the map’s maximum pitch.
    
    If the map’s current pitch is higher than the new maximum, the map will pitch to the new maximum. If null is provided, the function removes the current maximum pitch (sets it to 60).
    
    Throws
    
    A `[MTError](https://docs.maptiler.com/mobile-sdk/ios/api/Enums/MTError/)` if maxPitch is out of bounds.
    
    #### Declaration
    
    Swift
    
    ```
    @MainActor
    public func setMaxPitch(_ maxPitch: Double?) async throws
    ```
    
    #### Parameters
    
    <table class="graybox"><tbody><tr><td><code><em>maxPitch</em></code></td><td><div><p>The maximum pitch to set (0-85).</p></div></td></tr></tbody></table>
    
-   `[setMaxZoom(_:)](#/s:11MapTilerSDK9MTMapViewC10setMaxZoomyySdSgYaKF)` Asynchronous
    
    Sets or clears the map’s maximum zoom.
    
    If the map’s current zoom level is higher than the new maximum, the map will zoom to the new maximum. If null or undefined is provided, the function removes the current maximum zoom (sets it to 22).
    
    Throws
    
    A `[MTError](https://docs.maptiler.com/mobile-sdk/ios/api/Enums/MTError/)` if maxZoom is out of bounds.
    
    #### Declaration
    
    Swift
    
    ```
    @MainActor
    public func setMaxZoom(_ maxZoom: Double?) async throws
    ```
    
    #### Parameters
    
    <table class="graybox"><tbody><tr><td><code><em>maxZoom</em></code></td><td><div><p>The maximum zoom level to set.</p></div></td></tr></tbody></table>
    
-   `[setMinPitch(_:)](#/s:11MapTilerSDK9MTMapViewC11setMinPitchyySdSgYaKF)` Asynchronous
    
    Sets or clears the map’s minimum pitch.
    
    If the map’s current pitch is lower than the new minimum, the map will pitch to the new minimum. If null is provided, the function removes the current minimum pitch (i.e. sets it to 0).
    
    Throws
    
    A `[MTError](https://docs.maptiler.com/mobile-sdk/ios/api/Enums/MTError/)` if minPitch is out of bounds.
    
    #### Declaration
    
    Swift
    
    ```
    @MainActor
    public func setMinPitch(_ minPitch: Double?) async throws
    ```
    
    #### Parameters
    
    <table class="graybox"><tbody><tr><td><code><em>minPitch</em></code></td><td><div><p>The minimum pitch to set (0-85)</p></div></td></tr></tbody></table>
    
-   `[setPitchLimits(with:)](#/s:11MapTilerSDK9MTMapViewC14setPitchLimits4withyAA18MTPitchLimitHelperC_tYaKF)` Asynchronous
    
    Sets or clears the pitch limits.
    
    Throws
    
    A `[MTError](https://docs.maptiler.com/mobile-sdk/ios/api/Enums/MTError/)` if limits are out of bounds.
    
    #### Declaration
    
    Swift
    
    ```
    @MainActor
    public func setPitchLimits(with pitchLimitHelper: MTPitchLimitHelper) async throws
    ```
    
    #### Parameters
    
    <table class="graybox"><tbody><tr><td><code><em>pitchLimitHelper</em></code></td><td><div><p>Helper to use for setting the limits.</p></div></td></tr></tbody></table>
    
-   `[setMinZoom(_:)](#/s:11MapTilerSDK9MTMapViewC10setMinZoomyySdSgYaKF)` Asynchronous
    
    Sets or clears the map’s minimum zoom.
    
    If the map’s current zoom level is lower than the new minimum, the map will zoom to the new minimum. If null is provided, the function removes the current minimum zoom (i.e. sets it to -2).
    
    Throws
    
    A `[MTError](https://docs.maptiler.com/mobile-sdk/ios/api/Enums/MTError/)` if minZoom is out of bounds.
    
    #### Declaration
    
    Swift
    
    ```
    @MainActor
    public func setMinZoom(_ minZoom: Double?) async throws
    ```
    
    #### Parameters
    
    <table class="graybox"><tbody><tr><td><code><em>minZoom</em></code></td><td><div><p>The minimum zoom level to set (-2 - 24).</p></div></td></tr></tbody></table>
    
-   `[setMaxBounds(_:)](#/s:11MapTilerSDK9MTMapViewC12setMaxBoundsyyAA8MTBoundsVSgYaKF)` Asynchronous
    
    Sets or clears the map’s maximum bounds constraint.
    
    #### Declaration
    
    Swift
    
    ```
    @MainActor
    public func setMaxBounds(_ bounds: MTBounds?) async throws
    ```
    
    #### Parameters
    
    <table class="graybox"><tbody><tr><td><code><em>bounds</em></code></td><td><div><p>The bounds to constrain panning to, or <code>nil</code> to remove the constraint.</p></div></td></tr></tbody></table>
    
-   `[setPitch(_:)](#/s:11MapTilerSDK9MTMapViewC8setPitchyySdYaF)` Asynchronous
    
    Sets the map’s pitch (tilt).
    
    #### Declaration
    
    Swift
    
    ```
    @MainActor
    public func setPitch(_ pitch: Double) async
    ```
    
    #### Parameters
    
    <table class="graybox"><tbody><tr><td><code><em>pitch</em></code></td><td><div><p>The pitch to set, measured in degrees away from the plane of the screen (0-60).</p></div></td></tr></tbody></table>
    
-   `[setRoll(_:)](#/s:11MapTilerSDK9MTMapViewC7setRollyySdYaF)` Asynchronous
    
    Sets the map’s roll angle.
    
    Note
    
    Triggers the following events: moveStart, moveEnd, rollStart, and rollEnd.
    
    #### Declaration
    
    Swift
    
    ```
    @MainActor
    public func setRoll(_ roll: Double) async
    ```
    
    #### Parameters
    
    <table class="graybox"><tbody><tr><td><code><em>roll</em></code></td><td><div><p>The roll to set, measured in degrees about the camera boresight.</p></div></td></tr></tbody></table>
    
-   `[getPitch()](#/s:11MapTilerSDK9MTMapViewC8getPitchSdyYaF)` Asynchronous
    
    Returns the map’s current pitch (tilt).
    
    The map’s current pitch, measured in degrees away from the plane of the screen.
    
    #### Declaration
    
    Swift
    
    ```
    @MainActor
    public func getPitch() async -> Double
    ```
    
-   `[getMaxPitch()](#/s:11MapTilerSDK9MTMapViewC11getMaxPitchSdyYaF)` Asynchronous
    
    Returns the map’s maximum pitch (tilt).
    
    The map’s maximum pitch, measured in degrees away from the plane of the screen.
    
    #### Declaration
    
    Swift
    
    ```
    @MainActor
    public func getMaxPitch() async -> Double
    ```
    
-   `[getMaxZoom()](#/s:11MapTilerSDK9MTMapViewC10getMaxZoomSdyYaF)` Asynchronous
    
    Returns the map’s maximum zoom.
    
    The map’s maximum zoom level.
    
    #### Declaration
    
    Swift
    
    ```
    @MainActor
    public func getMaxZoom() async -> Double
    ```
    
-   `[getMinPitch()](#/s:11MapTilerSDK9MTMapViewC11getMinPitchSdyYaF)` Asynchronous
    
    Returns the map’s minimum pitch (tilt).
    
    The map’s minimum pitch, measured in degrees away from the plane of the screen.
    
    #### Declaration
    
    Swift
    
    ```
    @MainActor
    public func getMinPitch() async -> Double
    ```
    
-   `[getMinZoom()](#/s:11MapTilerSDK9MTMapViewC10getMinZoomSdyYaF)` Asynchronous
    
    Returns the map’s minimum zoom.
    
    The map’s minimum zoom level.
    
    #### Declaration
    
    Swift
    
    ```
    @MainActor
    public func getMinZoom() async -> Double
    ```
    
-   `[panBy(_:)](#/s:11MapTilerSDK9MTMapViewC5panByyyAA7MTPointVYaF)` Asynchronous
    
    Pans the map by the specified offset.
    
    #### Declaration
    
    Swift
    
    ```
    @MainActor
    public func panBy(_ offset: MTPoint) async
    ```
    
    #### Parameters
    
    <table class="graybox"><tbody><tr><td><code><em>offset</em></code></td><td><div><p>The x and y coordinates by which to pan the map.</p></div></td></tr></tbody></table>
    
-   `[panTo(_:)](#/s:11MapTilerSDK9MTMapViewC5panToyySo22CLLocationCoordinate2DVYaF)` Asynchronous
    
    Pans the map to the specified location with an animated transition.
    
    #### Declaration
    
    Swift
    
    ```
    @MainActor
    public func panTo(_ coordinates: CLLocationCoordinate2D) async
    ```
    
    #### Parameters
    
    <table class="graybox"><tbody><tr><td><code><em>coordinates</em></code></td><td><div><p>The location to pan the map to.</p></div></td></tr></tbody></table>
    
-   `[stop()](#/s:11MapTilerSDK9MTMapViewC4stopyyYaF)` Asynchronous
    
    Stops any ongoing animated transition.
    
    #### Declaration
    
    Swift
    
    ```
    @MainActor
    public func stop() async
    ```
    
-   `[snapToNorth(animationOptions:)](#/s:11MapTilerSDK9MTMapViewC11snapToNorth16animationOptionsyAA011MTAnimationJ0VSg_tYaF)` Asynchronous
    
    Snaps the map so that north is up.
    
    #### Declaration
    
    Swift
    
    ```
    @MainActor
    public func snapToNorth(animationOptions: MTAnimationOptions? = nil) async
    ```
    
    #### Parameters
    
    <table class="graybox"><tbody><tr><td><code><em>animationOptions</em></code></td><td><div><p>Animation options.</p></div></td></tr></tbody></table>
    
-   `[resetNorth(animationOptions:)](#/s:11MapTilerSDK9MTMapViewC10resetNorth16animationOptionsyAA011MTAnimationI0VSg_tYaF)` Asynchronous
    
    Resets the map bearing to 0 degrees.
    
    #### Declaration
    
    Swift
    
    ```
    @MainActor
    public func resetNorth(animationOptions: MTAnimationOptions? = nil) async
    ```
    
    #### Parameters
    
    <table class="graybox"><tbody><tr><td><code><em>animationOptions</em></code></td><td><div><p>Animation options.</p></div></td></tr></tbody></table>
    
-   `[resetNorthPitch(animationOptions:)](#/s:11MapTilerSDK9MTMapViewC15resetNorthPitch16animationOptionsyAA011MTAnimationJ0VSg_tYaF)` Asynchronous
    
    Resets the map bearing to 0 and pitch to default.
    
    #### Declaration
    
    Swift
    
    ```
    @MainActor
    public func resetNorthPitch(animationOptions: MTAnimationOptions? = nil) async
    ```
    
    #### Parameters
    
    <table class="graybox"><tbody><tr><td><code><em>animationOptions</em></code></td><td><div><p>Animation options.</p></div></td></tr></tbody></table>
    
-   `[getCenter()](#/s:11MapTilerSDK9MTMapViewC9getCenterSo22CLLocationCoordinate2DVyYaF)` Asynchronous
    
    Returns the map’s current center.
    
    The map’s current geographical center.
    
    #### Declaration
    
    Swift
    
    ```
    @MainActor
    public func getCenter() async -> CLLocationCoordinate2D
    ```
    
-   `[getBounds()](#/s:11MapTilerSDK9MTMapViewC9getBoundsAA8MTBoundsVyYaF)` Asynchronous
    
    Returns the map’s current geographic bounds.
    
    #### Declaration
    
    Swift
    
    ```
    @MainActor
    public func getBounds() async -> MTBounds
    ```
    
-   `[getMaxBounds()](#/s:11MapTilerSDK9MTMapViewC12getMaxBoundsAA8MTBoundsVSgyYaF)` Asynchronous
    
    Returns the maximum bounds constraint applied to the map, if any.
    
    #### Declaration
    
    Swift
    
    ```
    @MainActor
    public func getMaxBounds() async -> MTBounds?
    ```
    
-   `[getCenterClampedToGround()](#/s:11MapTilerSDK9MTMapViewC24getCenterClampedToGroundSbyYaF)` Asynchronous
    
    Returns whether the map’s center point is clamped to the ground.
    
    #### Declaration
    
    Swift
    
    ```
    @MainActor
    public func getCenterClampedToGround() async -> Bool
    ```
    
-   `[getCenterElevation()](#/s:11MapTilerSDK9MTMapViewC18getCenterElevationSdyYaF)` Asynchronous
    
    Returns the elevation of the map’s center point, in meters above sea level.
    
    #### Declaration
    
    Swift
    
    ```
    @MainActor
    public func getCenterElevation() async -> Double
    ```
    
-   `[getCameraTargetElevation()](#/s:11MapTilerSDK9MTMapViewC24getCameraTargetElevationSdyYaF)` Asynchronous
    
    Returns the elevation for the point where the camera is looking, in meters above sea level multiplied by exaggeration.
    
    #### Declaration
    
    Swift
    
    ```
    @MainActor
    public func getCameraTargetElevation() async -> Double
    ```
    
-   `[project(coordinates:)](#/s:11MapTilerSDK9MTMapViewC7project11coordinatesAA7MTPointVSo22CLLocationCoordinate2DV_tYaF)` Asynchronous
    
    Project coordinates to point on the container.
    
    #### Declaration
    
    Swift
    
    ```
    @MainActor
    public func project(coordinates: CLLocationCoordinate2D) async -> MTPoint
    ```
    
    #### Parameters
    
    <table class="graybox"><tbody><tr><td><code><em>coordinates</em></code></td><td><div><p>The location to project.</p></div></td></tr></tbody></table>
    
-   `[unproject(point:)](#/s:11MapTilerSDK9MTMapViewC9unproject5pointSo22CLLocationCoordinate2DVAA7MTPointV_tYaF)` Asynchronous
    
    Unproject screen coordinates to geographical coordinates.
    
    #### Declaration
    
    Swift
    
    ```
    @MainActor
    public func unproject(point: MTPoint) async -> CLLocationCoordinate2D
    ```
    
    #### Parameters
    
    <table class="graybox"><tbody><tr><td><code><em>point</em></code></td><td><div><p>The screen coordinates to unproject.</p></div></td></tr></tbody></table>
    
-   `[pointAdd(point1:point2:)](#/s:11MapTilerSDK9MTMapViewC8pointAdd6point16point2AA7MTPointVAH_AHtYaF)` Asynchronous
    
    Adds another point to this point’s x and y coordinates, yielding a new point.
    
    #### Declaration
    
    Swift
    
    ```
    @MainActor
    public func pointAdd(point1: MTPoint, point2: MTPoint) async -> MTPoint
    ```
    
    #### Parameters
    
    <table class="graybox"><tbody><tr><td><code><em>point1</em></code></td><td><div><p>The first point.</p></div></td></tr><tr><td><code><em>point2</em></code></td><td><div><p>The second point to add to the first point.</p></div></td></tr></tbody></table>
    
-   `[wrap(coordinates:)](#/s:11MapTilerSDK9MTMapViewC4wrap11coordinatesSo22CLLocationCoordinate2DVAG_tYaF)` Asynchronous
    
    Returns a new `CLLocationCoordinate2D` object whose longitude is wrapped to the range (-180, 180).
    
    #### Declaration
    
    Swift
    
    ```
    @MainActor
    public func wrap(coordinates: CLLocationCoordinate2D) async -> CLLocationCoordinate2D
    ```
    
    #### Parameters
    
    <table class="graybox"><tbody><tr><td><code><em>coordinates</em></code></td><td><div><p>The coordinates to wrap.</p></div></td></tr></tbody></table>
    
-   `[lngLatToArray(coordinates:)](#/s:11MapTilerSDK9MTMapViewC13lngLatToArray11coordinatesSaySdGSo22CLLocationCoordinate2DV_tYaF)` Asynchronous
    
    Converts a `CLLocationCoordinate2D` object to an array of doubles `[longitude, latitude]`.
    
    #### Declaration
    
    Swift
    
    ```
    @MainActor
    public func lngLatToArray(coordinates: CLLocationCoordinate2D) async -> [Double]
    ```
    
    #### Parameters
    
    <table class="graybox"><tbody><tr><td><code><em>coordinates</em></code></td><td><div><p>The coordinates to convert.</p></div></td></tr></tbody></table>
    
    #### Return Value
    
    An array of doubles representing the coordinates.
    
-   `[lngLatToString(coordinates:)](#/s:11MapTilerSDK9MTMapViewC14lngLatToString11coordinatesSSSo22CLLocationCoordinate2DV_tYaF)` Asynchronous
    
    Converts a `CLLocationCoordinate2D` object to a string representation.
    
    #### Declaration
    
    Swift
    
    ```
    @MainActor
    public func lngLatToString(coordinates: CLLocationCoordinate2D) async -> String
    ```
    
    #### Parameters
    
    <table class="graybox"><tbody><tr><td><code><em>coordinates</em></code></td><td><div><p>The coordinates to convert.</p></div></td></tr></tbody></table>
    
    #### Return Value
    
    A string representation of the coordinates.
    
-   `[getBearing()](#/s:11MapTilerSDK9MTMapViewC10getBearingSdyYaF)` Asynchronous
    
    Returns the map’s current bearing.
    
    #### Declaration
    
    Swift
    
    ```
    @MainActor
    public func getBearing() async -> Double
    ```
    
-   `[getRoll()](#/s:11MapTilerSDK9MTMapViewC7getRollSdyYaF)` Asynchronous
    
    Returns the map’s current roll.
    
    #### Declaration
    
    Swift
    
    ```
    @MainActor
    public func getRoll() async -> Double
    ```
    
-   `[isMoving()](#/s:11MapTilerSDK9MTMapViewC8isMovingSbyYaF)` Asynchronous
    
    Returns true while any camera movement is active.
    
    #### Declaration
    
    Swift
    
    ```
    @MainActor
    public func isMoving() async -> Bool
    ```
    
-   `[isRotating()](#/s:11MapTilerSDK9MTMapViewC10isRotatingSbyYaF)` Asynchronous
    
    Returns true while the map is rotating.
    
    #### Declaration
    
    Swift
    
    ```
    @MainActor
    public func isRotating() async -> Bool
    ```
    
-   `[isZooming()](#/s:11MapTilerSDK11MTNavigableP9isZoomingSbyYaF)` Asynchronous
    
    #### Declaration
    
    Swift
    
    ```
    @MainActor
    public func isZooming() async -> Bool
    ```
    

[](#/UI%20to%20Offline%20Region%20Helpers)

### UI to Offline Region Helpers

-   `[polygon(for:)](#/s:11MapTilerSDK9MTMapViewC7polygon3forSaySo22CLLocationCoordinate2DVGSo6CGRectV_tYaF)` Asynchronous
    
    Translates a screen-space rectangle to a precise 4-point polygon.
    
    Use this for offline regions when the map is rotated or pitched to minimize unnecessary tile downloads compared to an axis-aligned bounding box.
    
    #### Declaration
    
    Swift
    
    ```
    @MainActor
    public func polygon(for rect: CGRect) async -> [CLLocationCoordinate2D]
    ```
    
    #### Parameters
    
    <table class="graybox"><tbody><tr><td><code><em>rect</em></code></td><td><div><p>The screen-space rectangle.</p></div></td></tr></tbody></table>
    
    #### Return Value
    
    An array of coordinates representing the 4 corners of the rectangle.
    
-   `[boundingBox(for:)](#/s:11MapTilerSDK9MTMapViewC11boundingBox3forAA010MTBoundingG0VSo6CGRectV_tYaF)` Asynchronous
    
    Translates a screen-space rectangle to a geographic bounding box.
    
    The resulting bounding box encompasses all coordinates visible within the specified rectangle, accounting for current map rotation and pitch.
    
    #### Declaration
    
    Swift
    
    ```
    @MainActor
    public func boundingBox(for rect: CGRect) async -> MTBoundingBox
    ```
    
    #### Parameters
    
    <table class="graybox"><tbody><tr><td><code><em>rect</em></code></td><td><div><p>The screen-space rectangle.</p></div></td></tr></tbody></table>
    
    #### Return Value
    
    An `[MTBoundingBox](https://docs.maptiler.com/mobile-sdk/ios/api/Structs/MTBoundingBox/)` containing the rectangle.
    
-   `[getVisibleBoundingBox()](#/s:11MapTilerSDK9MTMapViewC21getVisibleBoundingBoxAA010MTBoundingI0VyYaF)` Asynchronous
    
    Returns the bounding box of the currently visible map area.
    
    #### Declaration
    
    Swift
    
    ```
    @MainActor
    public func getVisibleBoundingBox() async -> MTBoundingBox
    ```
    
-   `[createOfflineRegion(covering:minZoom:maxZoom:usePrecisePolygon:)](#/s:11MapTilerSDK9MTMapViewC19createOfflineRegion8covering7minZoom03maxK017usePrecisePolygonAA09MTOfflineH10DefinitionVSo6CGRectV_S2iSbtYaF)` Asynchronous
    
    Creates an offline region definition directly from a screen-space rectangle.
    
    #### Declaration
    
    Swift
    
    ```
    @MainActor
    public func createOfflineRegion(
        covering rect: CGRect,
        minZoom: Int,
        maxZoom: Int,
        usePrecisePolygon: Bool = false
    ) async -> MTOfflineRegionDefinition
    ```
    
    #### Parameters
    
    <table class="graybox"><tbody><tr><td><code><em>rect</em></code></td><td><div><p>The UI rectangle (e.g., from a selection overlay or the map’s bounds).</p></div></td></tr><tr><td><code><em>minZoom</em></code></td><td><div><p>Minimum zoom level to download.</p></div></td></tr><tr><td><code><em>maxZoom</em></code></td><td><div><p>Maximum zoom level to download.</p></div></td></tr><tr><td><code><em>usePrecisePolygon</em></code></td><td><div><p>If true, uses a polygon to minimize tile count on rotated maps instead of an axis-aligned bounding box.</p></div></td></tr></tbody></table>
    
    #### Return Value
    
    A fully configured region definition ready for download.
    
-   `[getPixelRatio(completionHandler:)](#/s:11MapTilerSDK9MTMapViewC13getPixelRatio17completionHandleryys6ResultOySdAA7MTErrorOGc_tF)`
    
    Returns the pixel ratio currently used by the map.
    
    #### Declaration
    
    Swift
    
    ```
    @available(iOS, deprecated: 16.0, message: "Prefer the async version for modern concurrency handling")
    @MainActor
    public func getPixelRatio(completionHandler: @escaping (Result<Double, MTError>) -> Void)
    ```
    
    #### Parameters
    
    <table class="graybox"><tbody><tr><td><code><em>completionHandler</em></code></td><td><div><p>A handler block to execute when function finishes.</p></div></td></tr></tbody></table>
    
-   `[setPixelRatio(_:completionHandler:)](#/s:11MapTilerSDK9MTMapViewC13setPixelRatio_17completionHandlerySd_ys6ResultOyytAA7MTErrorOGcSgtF)`
    
    Sets the pixel ratio used by the map.
    
    #### Declaration
    
    Swift
    
    ```
    @available(iOS, deprecated: 16.0, message: "Prefer the async version for modern concurrency handling")
    @MainActor
    public func setPixelRatio(
        _ pixelRatio: Double,
        completionHandler: ((Result<Void, MTError>) -> Void)? = nil
    )
    ```
    
    #### Parameters
    
    <table class="graybox"><tbody><tr><td><code><em>pixelRatio</em></code></td><td><div><p>Pixel ratio value to apply.</p></div></td></tr><tr><td><code><em>completionHandler</em></code></td><td><div><p>A handler block to execute when function finishes.</p></div></td></tr></tbody></table>
    
-   `[triggerRepaint(completionHandler:)](#/s:11MapTilerSDK9MTMapViewC14triggerRepaint17completionHandleryys6ResultOyytAA7MTErrorOGcSg_tF)`
    
    Trigger the rendering of a single frame. Use this method with custom layers to repaint the map when the layer changes. Calling this multiple times before the next frame is rendered will still result in only a single frame being rendered.
    
    #### Declaration
    
    Swift
    
    ```
    @available(iOS, deprecated: 16.0, message: "Prefer the async version for modern concurrency handling")
    @MainActor
    public func triggerRepaint(
        completionHandler: ((Result<Void, MTError>) -> Void)? = nil
    )
    ```
    
    #### Parameters
    
    <table class="graybox"><tbody><tr><td><code><em>completionHandler</em></code></td><td><div><p>A handler block to execute when function finishes.</p></div></td></tr></tbody></table>
    
-   `[repaint(completionHandler:)](#/s:11MapTilerSDK9MTMapViewC7repaint17completionHandleryys6ResultOyytAA7MTErrorOGcSg_tF)`
    
    Requests the map be repainted on the next animation frame.
    
    #### Declaration
    
    Swift
    
    ```
    @available(iOS, deprecated: 16.0, message: "Prefer the async version for modern concurrency handling")
    @MainActor
    public func repaint(
        completionHandler: ((Result<Void, MTError>) -> Void)? = nil
    )
    ```
    
    #### Parameters
    
    <table class="graybox"><tbody><tr><td><code><em>completionHandler</em></code></td><td><div><p>A handler block to execute when function finishes.</p></div></td></tr></tbody></table>
    
-   `[redraw(completionHandler:)](#/s:11MapTilerSDK9MTMapViewC6redraw17completionHandleryys6ResultOyytAA7MTErrorOGcSg_tF)`
    
    Schedules a re‑render of the map.
    
    #### Declaration
    
    Swift
    
    ```
    @available(iOS, deprecated: 16.0, message: "Prefer the async version for modern concurrency handling")
    @MainActor
    public func redraw(
        completionHandler: ((Result<Void, MTError>) -> Void)? = nil
    )
    ```
    
    #### Parameters
    
    <table class="graybox"><tbody><tr><td><code><em>completionHandler</em></code></td><td><div><p>A handler block to execute when function finishes.</p></div></td></tr></tbody></table>
    
-   `[setShowTileBoundaries(_:completionHandler:)](#/s:11MapTilerSDK9MTMapViewC21setShowTileBoundaries_17completionHandlerySb_ys6ResultOyytAA7MTErrorOGcSgtF)`
    
    Displays tile boundaries on the map.
    
    #### Declaration
    
    Swift
    
    ```
    @available(iOS, deprecated: 16.0, message: "Prefer the async version for modern concurrency handling")
    @MainActor
    public func setShowTileBoundaries(
        _ show: Bool,
        completionHandler: ((Result<Void, MTError>) -> Void)? = nil
    )
    ```
    
    #### Parameters
    
    <table class="graybox"><tbody><tr><td><code><em>show</em></code></td><td><div><p>A boolean value indicating whether to show tile boundaries.</p></div></td></tr><tr><td><code><em>completionHandler</em></code></td><td><div><p>A handler block to execute when function finishes.</p></div></td></tr></tbody></table>
    
-   `[setShowPadding(_:completionHandler:)](#/s:11MapTilerSDK9MTMapViewC14setShowPadding_17completionHandlerySb_ys6ResultOyytAA7MTErrorOGcSgtF)`
    
    Displays padding on the map.
    
    #### Declaration
    
    Swift
    
    ```
    @available(iOS, deprecated: 16.0, message: "Prefer the async version for modern concurrency handling")
    @MainActor
    public func setShowPadding(
        _ show: Bool,
        completionHandler: ((Result<Void, MTError>) -> Void)? = nil
    )
    ```
    
    #### Parameters
    
    <table class="graybox"><tbody><tr><td><code><em>show</em></code></td><td><div><p>A boolean value indicating whether to show padding.</p></div></td></tr><tr><td><code><em>completionHandler</em></code></td><td><div><p>A handler block to execute when function finishes.</p></div></td></tr></tbody></table>
    
-   `[setShowOverdrawInspector(_:completionHandler:)](#/s:11MapTilerSDK9MTMapViewC24setShowOverdrawInspector_17completionHandlerySb_ys6ResultOyytAA7MTErrorOGcSgtF)`
    
    Displays the overdraw inspector on the map.
    
    #### Declaration
    
    Swift
    
    ```
    @available(iOS, deprecated: 16.0, message: "Prefer the async version for modern concurrency handling")
    @MainActor
    public func setShowOverdrawInspector(
        _ show: Bool,
        completionHandler: ((Result<Void, MTError>) -> Void)? = nil
    )
    ```
    
    #### Parameters
    
    <table class="graybox"><tbody><tr><td><code><em>show</em></code></td><td><div><p>A boolean value indicating whether to show the overdraw inspector.</p></div></td></tr><tr><td><code><em>completionHandler</em></code></td><td><div><p>A handler block to execute when function finishes.</p></div></td></tr></tbody></table>
    
-   `[setShowCollisionBoxes(_:completionHandler:)](#/s:11MapTilerSDK9MTMapViewC21setShowCollisionBoxes_17completionHandlerySb_ys6ResultOyytAA7MTErrorOGcSgtF)`
    
    Displays collision boxes on the map.
    
    #### Declaration
    
    Swift
    
    ```
    @available(iOS, deprecated: 16.0, message: "Prefer the async version for modern concurrency handling")
    @MainActor
    public func setShowCollisionBoxes(
        _ show: Bool,
        completionHandler: ((Result<Void, MTError>) -> Void)? = nil
    )
    ```
    
    #### Parameters
    
    <table class="graybox"><tbody><tr><td><code><em>show</em></code></td><td><div><p>A boolean value indicating whether to show collision boxes.</p></div></td></tr><tr><td><code><em>completionHandler</em></code></td><td><div><p>A handler block to execute when function finishes.</p></div></td></tr></tbody></table>
    
-   `[setMaxParallelImageRequests(_:completionHandler:)](#/s:11MapTilerSDK9MTMapViewC27setMaxParallelImageRequests_17completionHandlerySi_ys6ResultOyytAA7MTErrorOGcSgtF)`
    
    Sets the maximum number of images loaded in parallel.
    
    #### Declaration
    
    Swift
    
    ```
    @available(iOS, deprecated: 16.0, message: "Prefer the async version for modern concurrency handling")
    @MainActor
    public func setMaxParallelImageRequests(
        _ maxParallelImageRequests: Int,
        completionHandler: ((Result<Void, MTError>) -> Void)? = nil
    )
    ```
    
    #### Parameters
    
    <table class="graybox"><tbody><tr><td><code><em>maxParallelImageRequests</em></code></td><td><div><p>The maximum number of images.</p></div></td></tr><tr><td><code><em>completionHandler</em></code></td><td><div><p>A handler block to execute when function finishes.</p></div></td></tr></tbody></table>
    
-   `[setRTLTextPlugin(pluginURL:deferred:completionHandler:)](#/s:11MapTilerSDK9MTMapViewC16setRTLTextPlugin9pluginURL8deferred17completionHandlerySS_Sbys6ResultOyytAA7MTErrorOGcSgtF)`
    
    Sets the map’s RTL text plugin.
    
    #### Declaration
    
    Swift
    
    ```
    @available(iOS, deprecated: 16.0, message: "Prefer the async version for modern concurrency handling")
    @MainActor
    public func setRTLTextPlugin(
        pluginURL: String,
        deferred: Bool = false,
        completionHandler: ((Result<Void, MTError>) -> Void)? = nil
    )
    ```
    
    #### Parameters
    
    <table class="graybox"><tbody><tr><td><code><em>pluginURL</em></code></td><td><div><p>URL pointing to the Mapbox RTL text plugin source.</p></div></td></tr><tr><td><code><em>deferred</em></code></td><td><div><p>A boolean indicating if the plugin evaluation should be deferred.</p></div></td></tr><tr><td><code><em>completionHandler</em></code></td><td><div><p>A handler block to execute when function finishes.</p></div></td></tr></tbody></table>
    
-   `[getPixelRatio()](#/s:11MapTilerSDK9MTMapViewC13getPixelRatioSdyYaF)` Asynchronous
    
    Returns the pixel ratio currently used by the map.
    
    #### Declaration
    
    Swift
    
    ```
    @MainActor
    public func getPixelRatio() async -> Double
    ```
    
-   `[setPixelRatio(_:)](#/s:11MapTilerSDK9MTMapViewC13setPixelRatioyySdYaF)` Asynchronous
    
    Sets the pixel ratio used by the map.
    
    #### Declaration
    
    Swift
    
    ```
    @MainActor
    public func setPixelRatio(_ pixelRatio: Double) async
    ```
    
    #### Parameters
    
    <table class="graybox"><tbody><tr><td><code><em>pixelRatio</em></code></td><td><div><p>Pixel ratio value to apply.</p></div></td></tr></tbody></table>
    
-   `[triggerRepaint()](#/s:11MapTilerSDK9MTMapViewC14triggerRepaintyyYaF)` Asynchronous
    
    Trigger the rendering of a single frame. Use this method with custom layers to repaint the map when the layer changes. Calling this multiple times before the next frame is rendered will still result in only a single frame being rendered.
    
    #### Declaration
    
    Swift
    
    ```
    @MainActor
    public func triggerRepaint() async
    ```
    
-   `[repaint()](#/s:11MapTilerSDK9MTMapViewC7repaintyyYaF)` Asynchronous
    
    Requests the map be repainted on the next animation frame.
    
    #### Declaration
    
    Swift
    
    ```
    @MainActor
    public func repaint() async
    ```
    
-   `[redraw()](#/s:11MapTilerSDK9MTMapViewC6redrawyyYaF)` Asynchronous
    
    Schedules a re‑render of the map.
    
    #### Declaration
    
    Swift
    
    ```
    @MainActor
    public func redraw() async
    ```
    
-   `[setShowTileBoundaries(_:)](#/s:11MapTilerSDK9MTMapViewC21setShowTileBoundariesyySbYaF)` Asynchronous
    
    Displays tile boundaries on the map.
    
    #### Declaration
    
    Swift
    
    ```
    @MainActor
    public func setShowTileBoundaries(_ show: Bool) async
    ```
    
    #### Parameters
    
    <table class="graybox"><tbody><tr><td><code><em>show</em></code></td><td><div><p>A boolean value indicating whether to show tile boundaries.</p></div></td></tr></tbody></table>
    
-   `[setShowPadding(_:)](#/s:11MapTilerSDK9MTMapViewC14setShowPaddingyySbYaF)` Asynchronous
    
    Displays padding on the map.
    
    #### Declaration
    
    Swift
    
    ```
    @MainActor
    public func setShowPadding(_ show: Bool) async
    ```
    
    #### Parameters
    
    <table class="graybox"><tbody><tr><td><code><em>show</em></code></td><td><div><p>A boolean value indicating whether to show padding.</p></div></td></tr></tbody></table>
    
-   `[setShowOverdrawInspector(_:)](#/s:11MapTilerSDK9MTMapViewC24setShowOverdrawInspectoryySbYaF)` Asynchronous
    
    Displays the overdraw inspector on the map.
    
    #### Declaration
    
    Swift
    
    ```
    @MainActor
    public func setShowOverdrawInspector(_ show: Bool) async
    ```
    
    #### Parameters
    
    <table class="graybox"><tbody><tr><td><code><em>show</em></code></td><td><div><p>A boolean value indicating whether to show the overdraw inspector.</p></div></td></tr></tbody></table>
    
-   `[setShowCollisionBoxes(_:)](#/s:11MapTilerSDK9MTMapViewC21setShowCollisionBoxesyySbYaF)` Asynchronous
    
    Displays collision boxes on the map.
    
    #### Declaration
    
    Swift
    
    ```
    @MainActor
    public func setShowCollisionBoxes(_ show: Bool) async
    ```
    
    #### Parameters
    
    <table class="graybox"><tbody><tr><td><code><em>show</em></code></td><td><div><p>A boolean value indicating whether to show collision boxes.</p></div></td></tr></tbody></table>
    
-   `[setMaxParallelImageRequests(_:)](#/s:11MapTilerSDK9MTMapViewC27setMaxParallelImageRequestsyySiYaF)` Asynchronous
    
    Sets the maximum number of images loaded in parallel.
    
    #### Declaration
    
    Swift
    
    ```
    @MainActor
    public func setMaxParallelImageRequests(_ maxParallelImageRequests: Int) async
    ```
    
    #### Parameters
    
    <table class="graybox"><tbody><tr><td><code><em>maxParallelImageRequests</em></code></td><td><div><p>The maximum number of images.</p></div></td></tr></tbody></table>
    
-   `[setRTLTextPlugin(pluginURL:deferred:)](#/s:11MapTilerSDK9MTMapViewC16setRTLTextPlugin9pluginURL8deferredySS_SbtYaF)` Asynchronous
    
    Sets the map’s RTL text plugin.
    
    #### Declaration
    
    Swift
    
    ```
    @MainActor
    public func setRTLTextPlugin(pluginURL: String, deferred: Bool = false) async
    ```
    
    #### Parameters
    
    <table class="graybox"><tbody><tr><td><code><em>pluginURL</em></code></td><td><div><p>URL pointing to the Mapbox RTL text plugin source.</p></div></td></tr><tr><td><code><em>deferred</em></code></td><td><div><p>A boolean indicating if the plugin evaluation should be deferred.</p></div></td></tr></tbody></table>
    
-   `[setGlyphs(url:options:completionHandler:)](#/s:11MapTilerSDK9MTMapViewC9setGlyphs3url7options17completionHandlery10Foundation3URLV_AA20MTStyleSetterOptionsVSgys6ResultOyytAA7MTErrorOGcSgtF)`
    
    Sets the value of the style’s glyphs property.
    
    #### Declaration
    
    Swift
    
    ```
    @available(iOS, deprecated: 16.0, message: "Prefer the async version for modern concurrency handling")
    @MainActor
    public func setGlyphs(
        url: URL,
        options: MTStyleSetterOptions?,
        completionHandler: ((Result<Void, MTError>) -> Void)? = nil
    )
    ```
    
    #### Parameters
    
    <table class="graybox"><tbody><tr><td><code><em>url</em></code></td><td><div><p>URL of the Glyph</p></div></td></tr><tr><td><code><em>options</em></code></td><td><div><p>Supporting type to add validation to another style related type.</p></div></td></tr><tr><td><code><em>completionHandler</em></code></td><td><div><p>A handler block to execute when function finishes.</p></div></td></tr></tbody></table>
    
-   `[setLanguage(_:completionHandler:)](#/s:11MapTilerSDK9MTMapViewC11setLanguage_17completionHandleryAA10MTLanguageO_ys6ResultOyytAA7MTErrorOGcSgtF)`
    
    Sets the map labels language.
    
    The language generally depends on the style. Whenever a label is not supported in the defined language, it falls back to MTLanguage.latin.
    
    #### Declaration
    
    Swift
    
    ```
    @available(iOS, deprecated: 16.0, message: "Prefer the async version for modern concurrency handling")
    @MainActor
    public func setLanguage(_ language: MTLanguage, completionHandler: ((Result<Void, MTError>) -> Void)? = nil)
    ```
    
    #### Parameters
    
    <table class="graybox"><tbody><tr><td><code><em>language</em></code></td><td><div><p>The language to be applied.</p></div></td></tr><tr><td><code><em>completionHandler</em></code></td><td><div><p>A handler block to execute when function finishes.</p></div></td></tr></tbody></table>
    
-   `[setSecondaryLanguage(_:completionHandler:)](#/s:11MapTilerSDK9MTMapViewC20setSecondaryLanguage_17completionHandleryAA10MTLanguageO_ys6ResultOyytAA7MTErrorOGcSgtF)`
    
    Sets the map labels secondary language.
    
    #### Declaration
    
    Swift
    
    ```
    @available(iOS, deprecated: 16.0, message: "Prefer the async version for modern concurrency handling")
    @MainActor
    public func setSecondaryLanguage(
        _ language: MTLanguage,
        completionHandler: ((Result<Void, MTError>) -> Void)? = nil
    )
    ```
    
    #### Parameters
    
    <table class="graybox"><tbody><tr><td><code><em>language</em></code></td><td><div><p>The language to be applied.</p></div></td></tr><tr><td><code><em>completionHandler</em></code></td><td><div><p>A handler block to execute when function finishes.</p></div></td></tr></tbody></table>
    
-   `[setSprite(_:completionHandler:)](#/s:11MapTilerSDK9MTMapViewC9setSprite_17completionHandlery10Foundation3URLV_ys6ResultOyytAA7MTErrorOGcSgtF)`
    
    Undocumented
    
    #### Declaration
    
    Swift
    
    ```
    @MainActor
    public func setSprite(_ url: URL, completionHandler: ((Result<Void, MTError>) -> Void)? = nil)
    ```
    
-   `[setLight(_:options:completionHandler:)](#/s:11MapTilerSDK9MTMapViewC8setLight_7options17completionHandleryAA7MTLightV_AA20MTStyleSetterOptionsVSgys6ResultOyytAA7MTErrorOGcSgtF)`
    
    Sets the any combination of light values.
    
    #### Declaration
    
    Swift
    
    ```
    @available(iOS, deprecated: 16.0, message: "Prefer the async version for modern concurrency handling")
    @MainActor
    public func setLight(
        _ light: MTLight,
        options: MTStyleSetterOptions?,
        completionHandler: ((Result<Void, MTError>) -> Void)? = nil
    )
    ```
    
    #### Parameters
    
    <table class="graybox"><tbody><tr><td><code><em>light</em></code></td><td><div><p>Light properties to set.</p></div></td></tr><tr><td><code><em>options</em></code></td><td><div><p>Supporting type to add validation to another style related type.</p></div></td></tr><tr><td><code><em>completionHandler</em></code></td><td><div><p>A handler block to execute when function finishes.</p></div></td></tr></tbody></table>
    
-   `[setSky(_:options:completionHandler:)](#/s:11MapTilerSDK9MTMapViewC6setSky_7options17completionHandleryAA5MTSkyV_AA20MTStyleSetterOptionsVSgys6ResultOyytAA7MTErrorOGcSgtF)`
    
    Sets the sky configuration for the map.
    
    #### Declaration
    
    Swift
    
    ```
    @available(iOS, deprecated: 16.0, message: "Prefer the async version for modern concurrency handling")
    @MainActor
    public func setSky(
        _ sky: MTSky,
        options: MTStyleSetterOptions?,
        completionHandler: ((Result<Void, MTError>) -> Void)? = nil
    )
    ```
    
    #### Parameters
    
    <table class="graybox"><tbody><tr><td><code><em>sky</em></code></td><td><div><p>Sky definition.</p></div></td></tr><tr><td><code><em>options</em></code></td><td><div><p>Supporting type to add validation to another style related type.</p></div></td></tr><tr><td><code><em>completionHandler</em></code></td><td><div><p>A handler block to execute when function finishes.</p></div></td></tr></tbody></table>
    
-   `[setSpace(_:completionHandler:)](#/s:11MapTilerSDK9MTMapViewC8setSpace_17completionHandleryAA13MTSpaceOptionO_ys6ResultOyytAA7MTErrorOGcSgtF)`
    
    Sets the space background for globe projection (cubemap/spacebox).
    
    Note
    
    Make sure space is enabled and projection is set to Globe before initializing the map via MTMapOptions.
    
    #### Declaration
    
    Swift
    
    ```
    @available(iOS, deprecated: 16.0, message: "Prefer the async version for modern concurrency handling")
    @MainActor
    public func setSpace(
        _ space: MTSpaceOption,
        completionHandler: ((Result<Void, MTError>) -> Void)? = nil
    )
    ```
    
    #### Parameters
    
    <table class="graybox"><tbody><tr><td><code><em>space</em></code></td><td><div><p>Space configuration or a boolean to enable default.</p></div></td></tr><tr><td><code><em>completionHandler</em></code></td><td><div><p>A handler block to execute when function finishes.</p></div></td></tr></tbody></table>
    
-   `[setHalo(_:completionHandler:)](#/s:11MapTilerSDK9MTMapViewC7setHalo_17completionHandleryAA12MTHaloOptionO_ys6ResultOyytAA7MTErrorOGcSgtF)`
    
    Sets the atmospheric halo (glow) around the globe.
    
    Note
    
    Make sure halo is enabled and projection is set to Globe before initializing the map via MTMapOptions.
    
    #### Declaration
    
    Swift
    
    ```
    @available(iOS, deprecated: 16.0, message: "Prefer the async version for modern concurrency handling")
    @MainActor
    public func setHalo(
        _ halo: MTHaloOption,
        completionHandler: ((Result<Void, MTError>) -> Void)? = nil
    )
    ```
    
    #### Parameters
    
    <table class="graybox"><tbody><tr><td><code><em>halo</em></code></td><td><div><p>Halo configuration or a boolean to enable default.</p></div></td></tr><tr><td><code><em>completionHandler</em></code></td><td><div><p>A handler block to execute when function finishes.</p></div></td></tr></tbody></table>
    
-   `[disableHaloAnimations(completionHandler:)](#/s:11MapTilerSDK9MTMapViewC21disableHaloAnimations17completionHandleryys6ResultOyytAA7MTErrorOGcSg_tF)`
    
    Disables state transitions/animations for halo updates.
    
    #### Declaration
    
    Swift
    
    ```
    @available(iOS, deprecated: 16.0, message: "Prefer the async version for modern concurrency handling")
    @MainActor
    public func disableHaloAnimations(
        completionHandler: ((Result<Void, MTError>) -> Void)? = nil
    )
    ```
    
    #### Parameters
    
    <table class="graybox"><tbody><tr><td><code><em>completionHandler</em></code></td><td><div><p>A handler block to execute when function finishes.</p></div></td></tr></tbody></table>
    
-   `[disableSpaceAnimations(completionHandler:)](#/s:11MapTilerSDK9MTMapViewC22disableSpaceAnimations17completionHandleryys6ResultOyytAA7MTErrorOGcSg_tF)`
    
    Disables state transitions/animations for space updates.
    
    #### Declaration
    
    Swift
    
    ```
    @available(iOS, deprecated: 16.0, message: "Prefer the async version for modern concurrency handling")
    @MainActor
    public func disableSpaceAnimations(
        completionHandler: ((Result<Void, MTError>) -> Void)? = nil
    )
    ```
    
    #### Parameters
    
    <table class="graybox"><tbody><tr><td><code><em>completionHandler</em></code></td><td><div><p>A handler block to execute when function finishes.</p></div></td></tr></tbody></table>
    
-   `[setShouldRenderWorldCopies(_:completionHandler:)](#/s:11MapTilerSDK9MTMapViewC26setShouldRenderWorldCopies_17completionHandlerySb_ys6ResultOyytAA7MTErrorOGcSgtF)`
    
    Sets the state of shouldRenderWorldCopies.
    
    If true , multiple copies of the world will be rendered side by side beyond -180 and 180 degrees longitude. If set to false: When the map is zoomed out far enough that a single representation of the world does not fill the map’s entire container, there will be blank space beyond 180 and -180 degrees longitude. When the map is zoomed out far enough that a single representation of the world does not fill the map’s entire container, there will be blank space beyond 180 and -180 degrees longitude. Features that cross 180 and -180 degrees longitude will be cut in two (with one portion on the right edge of the map and the other on the left edge of the map) at every zoom level.
    
    #### Declaration
    
    Swift
    
    ```
    @available(iOS, deprecated: 16.0, message: "Prefer the async version for modern concurrency handling")
    @MainActor
    public func setShouldRenderWorldCopies(
        _ shouldRenderWorldCopies: Bool,
        completionHandler: ((Result<Void, MTError>) -> Void)? = nil
    )
    ```
    
    #### Parameters
    
    <table class="graybox"><tbody><tr><td><code><em>shouldRenderWorldCopies</em></code></td><td><div><p>Boolean indicating whether world copies should be rendered.</p></div></td></tr><tr><td><code><em>completionHandler</em></code></td><td><div><p>A handler block to execute when function finishes.</p></div></td></tr></tbody></table>
    
-   `[addImage(name:image:options:completionHandler:)](#/s:11MapTilerSDK9MTMapViewC8addImage4name5image7options17completionHandlerySS_So7UIImageCAA07MTStyleG7OptionsVSgys6ResultOyytAA7MTErrorOGcSgtF)`
    
    Registers an image with the current style so it can be referenced by layers and annotations.
    
    #### Declaration
    
    Swift
    
    ```
    @available(iOS, deprecated: 16.0, message: "Prefer the async version for modern concurrency handling")
    @MainActor
    public func addImage(
        name: String,
        image: UIImage,
        options: MTStyleImageOptions? = nil,
        completionHandler: ((Result<Void, MTError>) -> Void)? = nil
    )
    ```
    
    #### Parameters
    
    <table class="graybox"><tbody><tr><td><code><em>name</em></code></td><td><div><p>Unique identifier for the image.</p></div></td></tr><tr><td><code><em>image</em></code></td><td><div><p>Image to register.</p></div></td></tr><tr><td><code><em>options</em></code></td><td><div><p>Additional configuration that controls how the image is rendered.</p></div></td></tr><tr><td><code><em>completionHandler</em></code></td><td><div><p>A handler block to execute when function finishes.</p></div></td></tr></tbody></table>
    
-   `[removeImage(name:completionHandler:)](#/s:11MapTilerSDK9MTMapViewC11removeImage4name17completionHandlerySS_ys6ResultOyytAA7MTErrorOGcSgtF)`
    
    Removes a previously added image by name. Use to clean up icons no longer referenced by layers.
    
    #### Declaration
    
    Swift
    
    ```
    @available(iOS, deprecated: 16.0, message: "Prefer the async version for modern concurrency handling")
    @MainActor
    public func removeImage(
        name: String,
        completionHandler: ((Result<Void, MTError>) -> Void)? = nil
    )
    ```
    
    #### Parameters
    
    <table class="graybox"><tbody><tr><td><code><em>name</em></code></td><td><div><p>Unique identifier for the image to remove.</p></div></td></tr><tr><td><code><em>completionHandler</em></code></td><td><div><p>A handler block to execute when function finishes.</p></div></td></tr></tbody></table>
    
-   `[updateImage(name:image:completionHandler:)](#/s:11MapTilerSDK9MTMapViewC11updateImage4name5image17completionHandlerySS_So7UIImageCys6ResultOyytAA7MTErrorOGcSgtF)`
    
    Updates an image in a style.
    
    #### Declaration
    
    Swift
    
    ```
    @available(iOS, deprecated: 16.0, message: "Prefer the async version for modern concurrency handling")
    @MainActor
    public func updateImage(
        name: String,
        image: UIImage,
        completionHandler: ((Result<Void, MTError>) -> Void)? = nil
    )
    ```
    
    #### Parameters
    
    <table class="graybox"><tbody><tr><td><code><em>name</em></code></td><td><div><p>Unique identifier for the image to update.</p></div></td></tr><tr><td><code><em>image</em></code></td><td><div><p>New image to set.</p></div></td></tr><tr><td><code><em>completionHandler</em></code></td><td><div><p>A handler block to execute when function finishes.</p></div></td></tr></tbody></table>
    
-   `[addSprite(id:url:completionHandler:)](#/s:11MapTilerSDK9MTMapViewC9addSprite2id3url17completionHandlerySS_10Foundation3URLVys6ResultOyytAA7MTErrorOGcSgtF)`
    
    Registers a sprite with the current style so it can be referenced by layers and annotations.
    
    #### Declaration
    
    Swift
    
    ```
    @available(iOS, deprecated: 16.0, message: "Prefer the async version for modern concurrency handling")
    @MainActor
    public func addSprite(
        id: String,
        url: URL,
        completionHandler: ((Result<Void, MTError>) -> Void)? = nil
    )
    ```
    
    #### Parameters
    
    <table class="graybox"><tbody><tr><td><code><em>id</em></code></td><td><div><p>Unique identifier for the sprite.</p></div></td></tr><tr><td><code><em>url</em></code></td><td><div><p>URL pointing to the sprite resource.</p></div></td></tr><tr><td><code><em>completionHandler</em></code></td><td><div><p>A handler block to execute when function finishes.</p></div></td></tr></tbody></table>
    
-   `[removeSprite(id:completionHandler:)](#/s:11MapTilerSDK9MTMapViewC12removeSprite2id17completionHandlerySS_ys6ResultOyytAA7MTErrorOGcSgtF)`
    
    Removes a sprite from the current style. Use to detach a sprite and free related resources.
    
    #### Declaration
    
    Swift
    
    ```
    @available(iOS, deprecated: 16.0, message: "Prefer the async version for modern concurrency handling")
    @MainActor
    public func removeSprite(
        id: String,
        completionHandler: ((Result<Void, MTError>) -> Void)? = nil
    )
    ```
    
    #### Parameters
    
    <table class="graybox"><tbody><tr><td><code><em>id</em></code></td><td><div><p>Unique identifier for the sprite.</p></div></td></tr><tr><td><code><em>completionHandler</em></code></td><td><div><p>A handler block to execute when function finishes.</p></div></td></tr></tbody></table>
    
-   `[addMarker(_:completionHandler:)](#/s:11MapTilerSDK9MTMapViewC9addMarker_17completionHandleryAA8MTMarkerC_ys6ResultOyytAA7MTErrorOGcSgtF)`
    
    Adds a marker to the map.
    
    #### Declaration
    
    Swift
    
    ```
    @available(iOS, deprecated: 16.0, message: "Prefer the async version for modern concurrency handling")
    @MainActor
    public func addMarker(_ marker: MTMarker, completionHandler: ((Result<Void, MTError>) -> Void)? = nil)
    ```
    
    #### Parameters
    
    <table class="graybox"><tbody><tr><td><code><em>marker</em></code></td><td><div><p>Marker to be added to the map.</p></div></td></tr><tr><td><code><em>completionHandler</em></code></td><td><div><p>A handler block to execute when function finishes.</p></div></td></tr></tbody></table>
    
-   `[addMarkers(_:withSingleIcon:completionHandler:)](#/s:11MapTilerSDK9MTMapViewC10addMarkers_14withSingleIcon17completionHandlerySayAA8MTMarkerCG_So7UIImageCSgys6ResultOyytAA7MTErrorOGcSgtF)`
    
    Adds multiple markers to the map.
    
    Batch adding is preferred way of adding multiple markers to the map.
    
    #### Declaration
    
    Swift
    
    ```
    @available(iOS, deprecated: 16.0, message: "Prefer the async version for modern concurrency handling")
    @MainActor
    public func addMarkers(
        _ markers: [MTMarker],
        withSingleIcon: UIImage?,
        completionHandler: ((Result<Void, MTError>) -> Void)? = nil
    )
    ```
    
    #### Parameters
    
    <table class="graybox"><tbody><tr><td><code><em>markers</em></code></td><td><div><p>Markers to be added to the map.</p></div></td></tr><tr><td><code><em>withSingleIcon</em></code></td><td><div><p>Optional single image to use for all markers.</p></div></td></tr><tr><td><code><em>completionHandler</em></code></td><td><div><p>A handler block to execute when function finishes.</p></div></td></tr></tbody></table>
    
-   `[removeMarker(_:completionHandler:)](#/s:11MapTilerSDK9MTMapViewC12removeMarker_17completionHandleryAA8MTMarkerC_ys6ResultOyytAA7MTErrorOGcSgtF)`
    
    Removes a marker from the map.
    
    #### Declaration
    
    Swift
    
    ```
    @available(iOS, deprecated: 16.0, message: "Prefer the async version for modern concurrency handling")
    @MainActor
    public func removeMarker(_ marker: MTMarker, completionHandler: ((Result<Void, MTError>) -> Void)? = nil)
    ```
    
    #### Parameters
    
    <table class="graybox"><tbody><tr><td><code><em>marker</em></code></td><td><div><p>Marker to be removed from the map.</p></div></td></tr><tr><td><code><em>completionHandler</em></code></td><td><div><p>A handler block to execute when function finishes.</p></div></td></tr></tbody></table>
    
-   `[removeMarkers(_:completionHandler:)](#/s:11MapTilerSDK9MTMapViewC13removeMarkers_17completionHandlerySayAA8MTMarkerCG_ys6ResultOyytAA7MTErrorOGcSgtF)`
    
    Removes multiple markers from the map.
    
    Batch removing is preferred way of removing multiple markers from the map.
    
    #### Declaration
    
    Swift
    
    ```
    @available(iOS, deprecated: 16.0, message: "Prefer the async version for modern concurrency handling")
    @MainActor
    public func removeMarkers(_ markers: [MTMarker], completionHandler: ((Result<Void, MTError>) -> Void)? = nil)
    ```
    
    #### Parameters
    
    <table class="graybox"><tbody><tr><td><code><em>markers</em></code></td><td><div><p>Markers to be removed from the map.</p></div></td></tr><tr><td><code><em>completionHandler</em></code></td><td><div><p>A handler block to execute when function finishes.</p></div></td></tr></tbody></table>
    
-   `[addTextPopup(_:completionHandler:)](#/s:11MapTilerSDK9MTMapViewC12addTextPopup_17completionHandleryAA06MTTextH0C_ys6ResultOyytAA7MTErrorOGcSgtF)`
    
    Adds a text popup to the map.
    
    #### Declaration
    
    Swift
    
    ```
    @available(iOS, deprecated: 16.0, message: "Prefer the async version for modern concurrency handling")
    @MainActor
    public func addTextPopup(_ popup: MTTextPopup, completionHandler: ((Result<Void, MTError>) -> Void)? = nil)
    ```
    
    #### Parameters
    
    <table class="graybox"><tbody><tr><td><code><em>popup</em></code></td><td><div><p>Popup to be added to the map.</p></div></td></tr><tr><td><code><em>completionHandler</em></code></td><td><div><p>A handler block to execute when function finishes.</p></div></td></tr></tbody></table>
    
-   `[removeTextPopup(_:completionHandler:)](#/s:11MapTilerSDK9MTMapViewC15removeTextPopup_17completionHandleryAA06MTTextH0C_ys6ResultOyytAA7MTErrorOGcSgtF)`
    
    Removes a text popup from the map.
    
    #### Declaration
    
    Swift
    
    ```
    @available(iOS, deprecated: 16.0, message: "Prefer the async version for modern concurrency handling")
    @MainActor
    public func removeTextPopup(_ popup: MTTextPopup, completionHandler: ((Result<Void, MTError>) -> Void)? = nil)
    ```
    
    #### Parameters
    
    <table class="graybox"><tbody><tr><td><code><em>popup</em></code></td><td><div><p>Popup to be removed from the map.</p></div></td></tr><tr><td><code><em>completionHandler</em></code></td><td><div><p>A handler block to execute when function finishes.</p></div></td></tr></tbody></table>
    
-   `[getProjection(completionHandler:)](#/s:11MapTilerSDK9MTMapViewC13getProjection17completionHandleryys6ResultOyAA16MTProjectionTypeOAA7MTErrorOGcSg_tF)`
    
    Returns the projection currently active on the map.
    
    #### Declaration
    
    Swift
    
    ```
    @available(iOS, deprecated: 16.0, message: "Prefer the async version for modern concurrency handling")
    @MainActor
    public func getProjection(completionHandler: ((Result<MTProjectionType, MTError>) -> Void)? = nil)
    ```
    
    #### Parameters
    
    <table class="graybox"><tbody><tr><td><code><em>completionHandler</em></code></td><td><div><p>A handler block to execute when function finishes.</p></div></td></tr></tbody></table>
    
-   `[enableGlobeProjection(completionHandler:)](#/s:11MapTilerSDK9MTMapViewC21enableGlobeProjection17completionHandleryys6ResultOyytAA7MTErrorOGcSg_tF)`
    
    Enables the globe projection visualization.
    
    #### Declaration
    
    Swift
    
    ```
    @available(iOS, deprecated: 16.0, message: "Prefer the async version for modern concurrency handling")
    @MainActor
    public func enableGlobeProjection(completionHandler: ((Result<Void, MTError>) -> Void)? = nil)
    ```
    
    #### Parameters
    
    <table class="graybox"><tbody><tr><td><code><em>completionHandler</em></code></td><td><div><p>A handler block to execute when function finishes.</p></div></td></tr></tbody></table>
    
-   `[enableMercatorProjection(completionHandler:)](#/s:11MapTilerSDK9MTMapViewC24enableMercatorProjection17completionHandleryys6ResultOyytAA7MTErrorOGcSg_tF)`
    
    Enables the mercator projection visualization.
    
    #### Declaration
    
    Swift
    
    ```
    @available(iOS, deprecated: 16.0, message: "Prefer the async version for modern concurrency handling")
    @MainActor
    public func enableMercatorProjection(completionHandler: ((Result<Void, MTError>) -> Void)? = nil)
    ```
    
    #### Parameters
    
    <table class="graybox"><tbody><tr><td><code><em>completionHandler</em></code></td><td><div><p>A handler block to execute when function finishes.</p></div></td></tr></tbody></table>
    
-   `[isGlobeProjection(completionHandler:)](#/s:11MapTilerSDK9MTMapViewC17isGlobeProjection17completionHandleryys6ResultOySbAA7MTErrorOGcSg_tF)`
    
    Returns true if the current projection is globe; otherwise false.
    
    #### Declaration
    
    Swift
    
    ```
    @available(iOS, deprecated: 16.0, message: "Prefer the async version for modern concurrency handling")
    @MainActor
    public func isGlobeProjection(
        completionHandler: ((Result<Bool, MTError>) -> Void)? = nil
    )
    ```
    
    #### Parameters
    
    <table class="graybox"><tbody><tr><td><code><em>completionHandler</em></code></td><td><div><p>A handler block to execute when function finishes.</p></div></td></tr></tbody></table>
    
-   `[enableTerrain(exaggerationFactor:completionHandler:)](#/s:11MapTilerSDK9MTMapViewC13enableTerrain18exaggerationFactor17completionHandlerySd_ys6ResultOyytAA7MTErrorOGcSgtF)`
    
    Enables the 3D terrain visualization.
    
    Note
    
    Default is 1.
    
    #### Declaration
    
    Swift
    
    ```
    @available(iOS, deprecated: 16.0, message: "Prefer the async version for modern concurrency handling")
    @MainActor
    public func enableTerrain(
        exaggerationFactor: Double = 1.0,
        completionHandler: ((Result<Void, MTError>) -> Void)? = nil
    )
    ```
    
    #### Parameters
    
    <table class="graybox"><tbody><tr><td><code><em>exaggerationFactor</em></code></td><td><div><p>Factor for volume boosting.</p></div></td></tr><tr><td><code><em>completionHandler</em></code></td><td><div><p>A handler block to execute when function finishes.</p></div></td></tr></tbody></table>
    
-   `[disableTerrain(completionHandler:)](#/s:11MapTilerSDK9MTMapViewC14disableTerrain17completionHandleryys6ResultOyytAA7MTErrorOGcSg_tF)`
    
    Disables the 3D terrain visualization.
    
    #### Declaration
    
    Swift
    
    ```
    @available(iOS, deprecated: 16.0, message: "Prefer the async version for modern concurrency handling")
    @MainActor
    public func disableTerrain(completionHandler: ((Result<Void, MTError>) -> Void)? = nil)
    ```
    
    #### Parameters
    
    <table class="graybox"><tbody><tr><td><code><em>completionHandler</em></code></td><td><div><p>A handler block to execute when function finishes.</p></div></td></tr></tbody></table>
    
-   `[setTerrainExaggeration(_:animate:completionHandler:)](#/s:11MapTilerSDK9MTMapViewC22setTerrainExaggeration_7animate17completionHandlerySd_Sbys6ResultOyytAA7MTErrorOGcSgtF)`
    
    Sets the terrain exaggeration.
    
    #### Declaration
    
    Swift
    
    ```
    @available(iOS, deprecated: 16.0, message: "Prefer the async version for modern concurrency handling")
    @MainActor
    public func setTerrainExaggeration(
        _ exaggeration: Double,
        animate: Bool = true,
        completionHandler: ((Result<Void, MTError>) -> Void)? = nil
    )
    ```
    
    #### Parameters
    
    <table class="graybox"><tbody><tr><td><code><em>exaggeration</em></code></td><td><div><p>The new exaggeration factor.</p></div></td></tr><tr><td><code><em>animate</em></code></td><td><div><p>Whether to animate the transition. Defaults to <code>true</code>.</p></div></td></tr><tr><td><code><em>completionHandler</em></code></td><td><div><p>A handler block to execute when function finishes.</p></div></td></tr></tbody></table>
    
-   `[setTerrainAnimationDuration(_:completionHandler:)](#/s:11MapTilerSDK9MTMapViewC27setTerrainAnimationDuration_17completionHandlerySd_ys6ResultOyytAA7MTErrorOGcSgtF)`
    
    Sets the animation duration of the terrain transitions.
    
    #### Declaration
    
    Swift
    
    ```
    @available(iOS, deprecated: 16.0, message: "Prefer the async version for modern concurrency handling")
    @MainActor
    public func setTerrainAnimationDuration(
        _ duration: Double,
        completionHandler: ((Result<Void, MTError>) -> Void)? = nil
    )
    ```
    
    #### Parameters
    
    <table class="graybox"><tbody><tr><td><code><em>duration</em></code></td><td><div><p>The duration in milliseconds.</p></div></td></tr><tr><td><code><em>completionHandler</em></code></td><td><div><p>A handler block to execute when function finishes.</p></div></td></tr></tbody></table>
    
-   `[setTerrain(sourceId:exaggeration:completionHandler:)](#/s:11MapTilerSDK9MTMapViewC10setTerrain8sourceId12exaggeration17completionHandlerySS_SdSgys6ResultOyytAA7MTErrorOGcSgtF)`
    
    Sets the 3D terrain on the map.
    
    #### Declaration
    
    Swift
    
    ```
    @available(iOS, deprecated: 16.0, message: "Prefer the async version for modern concurrency handling")
    @MainActor
    public func setTerrain(
        sourceId: String,
        exaggeration: Double? = nil,
        completionHandler: ((Result<Void, MTError>) -> Void)? = nil
    )
    ```
    
    #### Parameters
    
    <table class="graybox"><tbody><tr><td><code><em>sourceId</em></code></td><td><div><p>The ID of the terrain source.</p></div></td></tr><tr><td><code><em>exaggeration</em></code></td><td><div><p>Factor for volume boosting.</p></div></td></tr><tr><td><code><em>completionHandler</em></code></td><td><div><p>A handler block to execute when function finishes.</p></div></td></tr></tbody></table>
    
-   `[setTerrain(completionHandler:)](#/s:11MapTilerSDK9MTMapViewC10setTerrain17completionHandleryys6ResultOyytAA7MTErrorOGcSg_tF)`
    
    Removes the 3D terrain from the map.
    
    #### Declaration
    
    Swift
    
    ```
    @available(iOS, deprecated: 16.0, message: "Prefer the async version for modern concurrency handling")
    @MainActor
    public func setTerrain(completionHandler: ((Result<Void, MTError>) -> Void)? = nil)
    ```
    
    #### Parameters
    
    <table class="graybox"><tbody><tr><td><code><em>completionHandler</em></code></td><td><div><p>A handler block to execute when function finishes.</p></div></td></tr></tbody></table>
    
-   `[hasTerrain(completionHandler:)](#/s:11MapTilerSDK9MTMapViewC10hasTerrain17completionHandleryys6ResultOySbAA7MTErrorOGcSg_tF)`
    
    Returns boolean value indicating whether 3D terrain visualization is enabled.
    
    #### Declaration
    
    Swift
    
    ```
    @available(iOS, deprecated: 16.0, message: "Prefer the async version for modern concurrency handling")
    @MainActor
    public func hasTerrain(
        completionHandler: ((Result<Bool, MTError>) -> Void)? = nil
    )
    ```
    
    #### Parameters
    
    <table class="graybox"><tbody><tr><td><code><em>completionHandler</em></code></td><td><div><p>A handler block to execute when function finishes.</p></div></td></tr></tbody></table>
    
-   `[setVerticalFieldOfView(degrees:completionHandler:)](#/s:11MapTilerSDK9MTMapViewC018setVerticalFieldOfE07degrees17completionHandlerySd_ys6ResultOyytAA7MTErrorOGcSgtF)`
    
    Sets the map’s vertical field of view, in degrees.
    
    The internal camera has a default vertical field of view of a wide ~36.86 degrees. In globe mode, such a large FOV reduces the amount of the Earth that can be seen at once and exaggerates the central part, comparably to a fisheye lens. In many cases, a narrower FOV is preferable.
    
    Note
    
    Default is 36.87.
    
    #### Declaration
    
    Swift
    
    ```
    @available(iOS, deprecated: 16.0, message: "Prefer the async version for modern concurrency handling")
    @MainActor
    public func setVerticalFieldOfView(
        degrees: Double = 36.87,
        completionHandler: ((Result<Void, MTError>) -> Void)? = nil
    )
    ```
    
    #### Parameters
    
    <table class="graybox"><tbody><tr><td><code><em>degrees</em></code></td><td><div><p>The vertical field of view to set, in degrees (0-180).</p></div></td></tr><tr><td><code><em>completionHandler</em></code></td><td><div><p>A handler block to execute when function finishes.</p></div></td></tr></tbody></table>
    
-   `[isSourceLoaded(id:completionHandler:)](#/s:11MapTilerSDK9MTMapViewC14isSourceLoaded2id17completionHandlerySS_ys6ResultOySbAA7MTErrorOGcSgtF)`
    
    Returns boolean value indicating whether the source with provided id is loaded.
    
    #### Declaration
    
    Swift
    
    ```
    @available(iOS, deprecated: 16.0, message: "Prefer the async version for modern concurrency handling")
    @MainActor
    public func isSourceLoaded(
        id: String,
        completionHandler: ((Result<Bool, MTError>) -> Void)? = nil
    )
    ```
    
    #### Parameters
    
    <table class="graybox"><tbody><tr><td><code><em>id</em></code></td><td><div><p>The id of the source.</p></div></td></tr><tr><td><code><em>completionHandler</em></code></td><td><div><p>A handler block to execute when function finishes.</p></div></td></tr></tbody></table>
    
-   `[areTilesLoaded(completionHandler:)](#/s:11MapTilerSDK9MTMapViewC14areTilesLoaded17completionHandleryys6ResultOySbAA7MTErrorOGcSg_tF)`
    
    Returns boolean value indicating whether all tiles required for the current viewport are loaded.
    
    #### Declaration
    
    Swift
    
    ```
    @available(iOS, deprecated: 16.0, message: "Prefer the async version for modern concurrency handling")
    @MainActor
    public func areTilesLoaded(
        completionHandler: ((Result<Bool, MTError>) -> Void)? = nil
    )
    ```
    
    #### Parameters
    
    <table class="graybox"><tbody><tr><td><code><em>completionHandler</em></code></td><td><div><p>A handler block to execute when function finishes.</p></div></td></tr></tbody></table>
    
-   `[isMapLoaded(completionHandler:)](#/s:11MapTilerSDK9MTMapViewC02isA6Loaded17completionHandleryys6ResultOySbAA7MTErrorOGcSg_tF)`
    
    Returns boolean value indicating whether the map is fully loaded.
    
    #### Declaration
    
    Swift
    
    ```
    @available(iOS, deprecated: 16.0, message: "Prefer the async version for modern concurrency handling")
    @MainActor
    public func isMapLoaded(
        completionHandler: ((Result<Bool, MTError>) -> Void)? = nil
    )
    ```
    
    #### Parameters
    
    <table class="graybox"><tbody><tr><td><code><em>completionHandler</em></code></td><td><div><p>A handler block to execute when function finishes.</p></div></td></tr></tbody></table>
    
-   `[loaded(completionHandler:)](#/s:11MapTilerSDK9MTMapViewC6loaded17completionHandleryys6ResultOySbAA7MTErrorOGcSg_tF)`
    
    Returns true when no ongoing operations remain and all sources/tiles are loaded.
    
    #### Declaration
    
    Swift
    
    ```
    @available(iOS, deprecated: 16.0, message: "Prefer the async version for modern concurrency handling")
    @MainActor
    public func loaded(
        completionHandler: ((Result<Bool, MTError>) -> Void)? = nil
    )
    ```
    
    #### Parameters
    
    <table class="graybox"><tbody><tr><td><code><em>completionHandler</em></code></td><td><div><p>A handler block to execute when function finishes.</p></div></td></tr></tbody></table>
    
-   `[isStyleLoaded(completionHandler:)](#/s:11MapTilerSDK9MTMapViewC13isStyleLoaded17completionHandleryys6ResultOySbAA7MTErrorOGcSg_tF)`
    
    Returns boolean value indicating whether the style is fully loaded.
    
    Use this method to check style readiness before manipulating layers or sources programmatically.
    
    #### Declaration
    
    Swift
    
    ```
    @available(iOS, deprecated: 16.0, message: "Prefer the async version for modern concurrency handling")
    @MainActor
    public func isStyleLoaded(
        completionHandler: ((Result<Bool, MTError>) -> Void)? = nil
    )
    ```
    
    #### Parameters
    
    <table class="graybox"><tbody><tr><td><code><em>completionHandler</em></code></td><td><div><p>A handler block to execute when function finishes.</p></div></td></tr></tbody></table>
    
-   `[getRenderWorldCopies(completionHandler:)](#/s:11MapTilerSDK9MTMapViewC20getRenderWorldCopies17completionHandleryys6ResultOySbAA7MTErrorOGcSg_tF)`
    
    Returns boolean value indicating whether the map renders world copies.
    
    #### Declaration
    
    Swift
    
    ```
    @available(iOS, deprecated: 16.0, message: "Prefer the async version for modern concurrency handling")
    @MainActor
    public func getRenderWorldCopies(
        completionHandler: ((Result<Bool, MTError>) -> Void)? = nil
    )
    ```
    
    #### Parameters
    
    <table class="graybox"><tbody><tr><td><code><em>completionHandler</em></code></td><td><div><p>A handler block to execute when function finishes.</p></div></td></tr></tbody></table>
    
-   `[setLayerZoomRange(forLayerId:minzoom:maxzoom:completionHandler:)](#/s:11MapTilerSDK9MTMapViewC17setLayerZoomRange03forG2Id7minzoom7maxzoom17completionHandlerySS_S2dys6ResultOyytAA7MTErrorOGcSgtF)`
    
    Sets min/max zoom levels at which a layer is rendered.
    
    #### Declaration
    
    Swift
    
    ```
    @available(iOS, deprecated: 16.0, message: "Prefer the async version for modern concurrency handling")
    @MainActor
    public func setLayerZoomRange(
        forLayerId layerId: String,
        minzoom: Double,
        maxzoom: Double,
        completionHandler: ((Result<Void, MTError>) -> Void)? = nil
    )
    ```
    
    #### Parameters
    
    <table class="graybox"><tbody><tr><td><code><em>layerId</em></code></td><td><div><p>Identifier of the target layer.</p></div></td></tr><tr><td><code><em>minzoom</em></code></td><td><div><p>The minimum zoom level.</p></div></td></tr><tr><td><code><em>maxzoom</em></code></td><td><div><p>The maximum zoom level.</p></div></td></tr><tr><td><code><em>completionHandler</em></code></td><td><div><p>A handler block to execute when function finishes.</p></div></td></tr></tbody></table>
    
-   `[setLayerZoomRange(forLayerId:minzoom:maxzoom:)](#/s:11MapTilerSDK9MTMapViewC17setLayerZoomRange03forG2Id7minzoom7maxzoomySS_S2dtYaF)` Asynchronous
    
    Sets min/max zoom levels at which a layer is rendered.
    
    #### Declaration
    
    Swift
    
    ```
    @MainActor
    public func setLayerZoomRange(forLayerId layerId: String, minzoom: Double, maxzoom: Double) async
    ```
    
    #### Parameters
    
    <table class="graybox"><tbody><tr><td><code><em>layerId</em></code></td><td><div><p>Identifier of the target layer.</p></div></td></tr><tr><td><code><em>minzoom</em></code></td><td><div><p>The minimum zoom level.</p></div></td></tr><tr><td><code><em>maxzoom</em></code></td><td><div><p>The maximum zoom level.</p></div></td></tr></tbody></table>
    
-   `[setFilter(forLayerId:filter:)](#/s:11MapTilerSDK9MTMapViewC9setFilter10forLayerId6filterySS_AA15MTPropertyValueOtYaF)` Asynchronous
    
    Undocumented
    
    #### Declaration
    
    Swift
    
    ```
    @MainActor
    public func setFilter(forLayerId layerId: String, filter: MTPropertyValue) async
    ```
    
-   `[setLayoutProperty(forLayerId:name:value:)](#/s:11MapTilerSDK9MTMapViewC17setLayoutProperty10forLayerId4name5valueySS_SSAA15MTPropertyValueOtYaF)` Asynchronous
    
    Undocumented
    
    #### Declaration
    
    Swift
    
    ```
    @MainActor
    public func setLayoutProperty(forLayerId layerId: String, name: String, value: MTPropertyValue) async
    ```
    
-   `[setPaintProperty(forLayerId:name:value:)](#/s:11MapTilerSDK9MTMapViewC16setPaintProperty10forLayerId4name5valueySS_SSAA15MTPropertyValueOtYaF)` Asynchronous
    
    Undocumented
    
    #### Declaration
    
    Swift
    
    ```
    @MainActor
    public func setPaintProperty(forLayerId layerId: String, name: String, value: MTPropertyValue) async
    ```
    

[](#/Typed%20property%20setters%20%28async%29)

### Typed property setters (async)

-   `[setLayoutProperty(forLayerId:property:value:)](#/s:11MapTilerSDK9MTMapViewC17setLayoutProperty10forLayerId8property5valueySS_AA08MTSymbolgH0OAA15MTPropertyValueOtYaF)` Asynchronous
    
    Sets a symbol layout property using a typed key (async).
    
    #### Declaration
    
    Swift
    
    ```
    @MainActor
    public func setLayoutProperty(
        forLayerId layerId: String,
        property: MTSymbolLayoutProperty,
        value: MTPropertyValue
    ) async
    ```
    
    #### Parameters
    
    <table class="graybox"><tbody><tr><td><code><em>layerId</em></code></td><td><div><p>Identifier of the target layer.</p></div></td></tr><tr><td><code><em>property</em></code></td><td><div><p>Typed symbol layout property key.</p></div></td></tr><tr><td><code><em>value</em></code></td><td><div><p>Property value or expression.</p></div></td></tr></tbody></table>
    
-   `[setPaintProperty(forLayerId:property:value:)](#/s:11MapTilerSDK9MTMapViewC16setPaintProperty10forLayerId8property5valueySS_AA08MTCirclegH0OAA15MTPropertyValueOtYaF)` Asynchronous
    
    Sets a circle paint property using a typed key (async).
    
    #### Declaration
    
    Swift
    
    ```
    @MainActor
    public func setPaintProperty(
        forLayerId layerId: String,
        property: MTCirclePaintProperty,
        value: MTPropertyValue
    ) async
    ```
    
    #### Parameters
    
    <table class="graybox"><tbody><tr><td><code><em>layerId</em></code></td><td><div><p>Identifier of the target layer.</p></div></td></tr><tr><td><code><em>property</em></code></td><td><div><p>Typed circle paint property key.</p></div></td></tr><tr><td><code><em>value</em></code></td><td><div><p>Property value or expression.</p></div></td></tr></tbody></table>
    
-   `[setPaintProperty(forLayerId:property:value:)](#/s:11MapTilerSDK9MTMapViewC16setPaintProperty10forLayerId8property5valueySS_AA08MTSymbolgH0OAA15MTPropertyValueOtYaF)` Asynchronous
    
    Sets a symbol paint property using a typed key (async).
    
    #### Declaration
    
    Swift
    
    ```
    @MainActor
    public func setPaintProperty(
        forLayerId layerId: String,
        property: MTSymbolPaintProperty,
        value: MTPropertyValue
    ) async
    ```
    
    #### Parameters
    
    <table class="graybox"><tbody><tr><td><code><em>layerId</em></code></td><td><div><p>Identifier of the target layer.</p></div></td></tr><tr><td><code><em>property</em></code></td><td><div><p>Typed symbol paint property key.</p></div></td></tr><tr><td><code><em>value</em></code></td><td><div><p>Property value or expression.</p></div></td></tr></tbody></table>
    
-   `[setGlyphs(url:options:)](#/s:11MapTilerSDK9MTMapViewC9setGlyphs3url7optionsy10Foundation3URLV_AA20MTStyleSetterOptionsVSgtYaF)` Asynchronous
    
    Sets the value of the style’s glyphs property.
    
    #### Declaration
    
    Swift
    
    ```
    @MainActor
    public func setGlyphs(url: URL, options: MTStyleSetterOptions?) async
    ```
    
    #### Parameters
    
    <table class="graybox"><tbody><tr><td><code><em>url</em></code></td><td><div><p>URL of the Glyph</p></div></td></tr><tr><td><code><em>options</em></code></td><td><div><p>Supporting type to add validation to another style related type.</p></div></td></tr></tbody></table>
    
-   `[setLanguage(_:)](#/s:11MapTilerSDK9MTMapViewC11setLanguageyyAA10MTLanguageOYaF)` Asynchronous
    
    Sets the map labels language.
    
    The language generally depends on the style. Whenever a label is not supported in the defined language, it falls back to MTLanguage.latin.
    
    #### Declaration
    
    Swift
    
    ```
    @MainActor
    public func setLanguage(_ language: MTLanguage) async
    ```
    
    #### Parameters
    
    <table class="graybox"><tbody><tr><td><code><em>language</em></code></td><td><div><p>The language to be applied.</p></div></td></tr></tbody></table>
    
-   `[setSecondaryLanguage(_:)](#/s:11MapTilerSDK9MTMapViewC20setSecondaryLanguageyyAA10MTLanguageOYaF)` Asynchronous
    
    Sets the map labels secondary language.
    
    #### Declaration
    
    Swift
    
    ```
    @MainActor
    public func setSecondaryLanguage(_ language: MTLanguage) async
    ```
    
    #### Parameters
    
    <table class="graybox"><tbody><tr><td><code><em>language</em></code></td><td><div><p>The language to be applied.</p></div></td></tr></tbody></table>
    
-   `[setSprite(_:)](#/s:11MapTilerSDK10MTStylableP9setSpriteyy10Foundation3URLVYaF)` Asynchronous
    
    #### Declaration
    
    Swift
    
    ```
    @MainActor
    public func setSprite(_ url: URL) async
    ```
    
-   `[setLight(_:options:)](#/s:11MapTilerSDK9MTMapViewC8setLight_7optionsyAA7MTLightV_AA20MTStyleSetterOptionsVSgtYaF)` Asynchronous
    
    Sets the any combination of light values.
    
    #### Declaration
    
    Swift
    
    ```
    @MainActor
    public func setLight(_ light: MTLight, options: MTStyleSetterOptions?) async
    ```
    
    #### Parameters
    
    <table class="graybox"><tbody><tr><td><code><em>light</em></code></td><td><div><p>Light properties to set.</p></div></td></tr><tr><td><code><em>options</em></code></td><td><div><p>Supporting type to add validation to another style related type.</p></div></td></tr></tbody></table>
    
-   `[setSky(_:options:)](#/s:11MapTilerSDK9MTMapViewC6setSky_7optionsyAA5MTSkyV_AA20MTStyleSetterOptionsVSgtYaF)` Asynchronous
    
    Sets the sky configuration for the map.
    
    #### Declaration
    
    Swift
    
    ```
    @MainActor
    public func setSky(_ sky: MTSky, options: MTStyleSetterOptions?) async
    ```
    
    #### Parameters
    
    <table class="graybox"><tbody><tr><td><code><em>sky</em></code></td><td><div><p>Sky definition.</p></div></td></tr><tr><td><code><em>options</em></code></td><td><div><p>Supporting type to add validation to another style related type.</p></div></td></tr></tbody></table>
    
-   `[setSpace(_:)](#/s:11MapTilerSDK9MTMapViewC8setSpaceyyAA13MTSpaceOptionOYaF)` Asynchronous
    
    Sets the space background for globe projection (cubemap/spacebox).
    
    Note
    
    Make sure space is enabled and projection is set to Globe before initializing the map via MTMapOptions.
    
    #### Declaration
    
    Swift
    
    ```
    @MainActor
    public func setSpace(_ space: MTSpaceOption) async
    ```
    
    #### Parameters
    
    <table class="graybox"><tbody><tr><td><code><em>space</em></code></td><td><div><p>Space configuration or a boolean to enable default.</p></div></td></tr></tbody></table>
    
-   `[setShouldRenderWorldCopies(_:)](#/s:11MapTilerSDK9MTMapViewC26setShouldRenderWorldCopiesyySbYaF)` Asynchronous
    
    Sets the state of shouldRenderWorldCopies.
    
    If true , multiple copies of the world will be rendered side by side beyond -180 and 180 degrees longitude. If set to false: When the map is zoomed out far enough that a single representation of the world does not fill the map’s entire container, there will be blank space beyond 180 and -180 degrees longitude. When the map is zoomed out far enough that a single representation of the world does not fill the map’s entire container, there will be blank space beyond 180 and -180 degrees longitude. Features that cross 180 and -180 degrees longitude will be cut in two (with one portion on the right edge of the map and the other on the left edge of the map) at every zoom level.
    
    #### Declaration
    
    Swift
    
    ```
    @MainActor
    public func setShouldRenderWorldCopies(_ shouldRenderWorldCopies: Bool) async
    ```
    
    #### Parameters
    
    <table class="graybox"><tbody><tr><td><code><em>shouldRenderWorldCopies</em></code></td><td><div><p>Boolean indicating whether world copies should be rendered.</p></div></td></tr></tbody></table>
    
-   `[addImage(name:image:options:)](#/s:11MapTilerSDK9MTMapViewC8addImage4name5image7optionsySS_So7UIImageCAA07MTStyleG7OptionsVSgtYaF)` Asynchronous
    
    Registers an image with the current style so it can be referenced by layers and annotations.
    
    #### Declaration
    
    Swift
    
    ```
    @MainActor
    public func addImage(name: String, image: UIImage, options: MTStyleImageOptions? = nil) async
    ```
    
    #### Parameters
    
    <table class="graybox"><tbody><tr><td><code><em>name</em></code></td><td><div><p>Unique identifier for the image.</p></div></td></tr><tr><td><code><em>image</em></code></td><td><div><p>Image to register.</p></div></td></tr><tr><td><code><em>options</em></code></td><td><div><p>Additional configuration that controls how the image is rendered.</p></div></td></tr></tbody></table>
    
-   `[removeImage(name:)](#/s:11MapTilerSDK9MTMapViewC11removeImage4nameySS_tYaF)` Asynchronous
    
    Removes a previously added image by name. Use to clean up icons no longer referenced by layers.
    
    #### Declaration
    
    Swift
    
    ```
    @MainActor
    public func removeImage(name: String) async
    ```
    
    #### Parameters
    
    <table class="graybox"><tbody><tr><td><code><em>name</em></code></td><td><div><p>Unique identifier for the image to remove.</p></div></td></tr></tbody></table>
    
-   `[updateImage(name:image:)](#/s:11MapTilerSDK9MTMapViewC11updateImage4name5imageySS_So7UIImageCtYaF)` Asynchronous
    
    Updates an image in a style.
    
    #### Declaration
    
    Swift
    
    ```
    @MainActor
    public func updateImage(name: String, image: UIImage) async
    ```
    
    #### Parameters
    
    <table class="graybox"><tbody><tr><td><code><em>name</em></code></td><td><div><p>Unique identifier for the image to update.</p></div></td></tr><tr><td><code><em>image</em></code></td><td><div><p>New image to set.</p></div></td></tr></tbody></table>
    
-   `[addSprite(id:url:)](#/s:11MapTilerSDK9MTMapViewC9addSprite2id3urlySS_10Foundation3URLVtYaF)` Asynchronous
    
    Registers a sprite with the current style so it can be referenced by layers and annotations.
    
    #### Declaration
    
    Swift
    
    ```
    @MainActor
    public func addSprite(id: String, url: URL) async
    ```
    
    #### Parameters
    
    <table class="graybox"><tbody><tr><td><code><em>id</em></code></td><td><div><p>Unique identifier for the sprite.</p></div></td></tr><tr><td><code><em>url</em></code></td><td><div><p>URL pointing to the sprite resource.</p></div></td></tr></tbody></table>
    
-   `[removeSprite(id:)](#/s:11MapTilerSDK9MTMapViewC12removeSprite2idySS_tYaF)` Asynchronous
    
    Removes a sprite from the current style. Use to detach a sprite and free related resources.
    
    #### Declaration
    
    Swift
    
    ```
    @MainActor
    public func removeSprite(id: String) async
    ```
    
    #### Parameters
    
    <table class="graybox"><tbody><tr><td><code><em>id</em></code></td><td><div><p>Unique identifier for the sprite.</p></div></td></tr></tbody></table>
    
-   `[addMarker(_:)](#/s:11MapTilerSDK9MTMapViewC9addMarkeryyAA8MTMarkerCYaF)` Asynchronous
    
    Adds a marker to the map.
    
    #### Declaration
    
    Swift
    
    ```
    @MainActor
    public func addMarker(_ marker: MTMarker) async
    ```
    
    #### Parameters
    
    <table class="graybox"><tbody><tr><td><code><em>marker</em></code></td><td><div><p>Marker to be added to the map.</p></div></td></tr></tbody></table>
    
-   `[addMarkers(_:withSingleIcon:)](#/s:11MapTilerSDK9MTMapViewC10addMarkers_14withSingleIconySayAA8MTMarkerCG_So7UIImageCSgtYaF)` Asynchronous
    
    Adds multiple markers to the map.
    
    Batch adding is preferred way of adding multiple markers to the map.
    
    #### Declaration
    
    Swift
    
    ```
    @MainActor
    public func addMarkers(_ markers: [MTMarker], withSingleIcon: UIImage?) async
    ```
    
    #### Parameters
    
    <table class="graybox"><tbody><tr><td><code><em>markers</em></code></td><td><div><p>Markers to be added to the map.</p></div></td></tr><tr><td><code><em>withSingleIcon</em></code></td><td><div><p>Optional single image to use for all markers.</p></div></td></tr></tbody></table>
    
-   `[removeMarker(_:)](#/s:11MapTilerSDK9MTMapViewC12removeMarkeryyAA8MTMarkerCYaF)` Asynchronous
    
    Removes a marker from the map.
    
    #### Declaration
    
    Swift
    
    ```
    @MainActor
    public func removeMarker(_ marker: MTMarker) async
    ```
    
    #### Parameters
    
    <table class="graybox"><tbody><tr><td><code><em>marker</em></code></td><td><div><p>Marker to be removed from the map.</p></div></td></tr></tbody></table>
    
-   `[removeMarkers(_:)](#/s:11MapTilerSDK9MTMapViewC13removeMarkersyySayAA8MTMarkerCGYaF)` Asynchronous
    
    Removes multiple markers from the map.
    
    Batch removing is preferred way of removing multiple markers from the map.
    
    #### Declaration
    
    Swift
    
    ```
    @MainActor
    public func removeMarkers(_ markers: [MTMarker]) async
    ```
    
    #### Parameters
    
    <table class="graybox"><tbody><tr><td><code><em>markers</em></code></td><td><div><p>Markers to be removed from the map.</p></div></td></tr></tbody></table>
    
-   `[addTextPopup(_:)](#/s:11MapTilerSDK9MTMapViewC12addTextPopupyyAA06MTTextH0CYaF)` Asynchronous
    
    Adds a text popup to the map.
    
    #### Declaration
    
    Swift
    
    ```
    @MainActor
    public func addTextPopup(_ popup: MTTextPopup) async
    ```
    
    #### Parameters
    
    <table class="graybox"><tbody><tr><td><code><em>popup</em></code></td><td><div><p>Popup to be added to the map.</p></div></td></tr></tbody></table>
    
-   `[removeTextPopup(_:)](#/s:11MapTilerSDK9MTMapViewC15removeTextPopupyyAA06MTTextH0CYaF)` Asynchronous
    
    Removes a text popup from the map.
    
    #### Declaration
    
    Swift
    
    ```
    @MainActor
    public func removeTextPopup(_ popup: MTTextPopup) async
    ```
    
    #### Parameters
    
    <table class="graybox"><tbody><tr><td><code><em>marker</em></code></td><td><div><p>Popup to be removed from the map.</p></div></td></tr></tbody></table>
    
-   `[getProjection()](#/s:11MapTilerSDK9MTMapViewC13getProjectionAA16MTProjectionTypeOyYaF)` Asynchronous
    
    Returns the projection currently active on the map.
    
    #### Declaration
    
    Swift
    
    ```
    @MainActor
    public func getProjection() async -> MTProjectionType
    ```
    
-   `[enableGlobeProjection()](#/s:11MapTilerSDK9MTMapViewC21enableGlobeProjectionyyYaF)` Asynchronous
    
    Enables the globe projection visualization.
    
    #### Declaration
    
    Swift
    
    ```
    @MainActor
    public func enableGlobeProjection() async
    ```
    
-   `[enableMercatorProjection()](#/s:11MapTilerSDK9MTMapViewC24enableMercatorProjectionyyYaF)` Asynchronous
    
    Enables the mercator projection visualization.
    
    #### Declaration
    
    Swift
    
    ```
    @MainActor
    public func enableMercatorProjection() async
    ```
    
-   `[isGlobeProjection()](#/s:11MapTilerSDK9MTMapViewC17isGlobeProjectionSbyYaF)` Asynchronous
    
    Returns true if the current projection is globe; otherwise false.
    
    #### Declaration
    
    Swift
    
    ```
    @MainActor
    public func isGlobeProjection() async -> Bool
    ```
    
-   `[enableTerrain(exaggerationFactor:)](#/s:11MapTilerSDK9MTMapViewC13enableTerrain18exaggerationFactorySd_tYaF)` Asynchronous
    
    Enables the 3D terrain visualization.
    
    Note
    
    Default is 1.
    
    #### Declaration
    
    Swift
    
    ```
    @MainActor
    public func enableTerrain(exaggerationFactor: Double = 1.0) async
    ```
    
    #### Parameters
    
    <table class="graybox"><tbody><tr><td><code><em>exaggerationFactor</em></code></td><td><div><p>Factor for volume boosting.</p></div></td></tr></tbody></table>
    
-   `[disableTerrain()](#/s:11MapTilerSDK9MTMapViewC14disableTerrainyyYaF)` Asynchronous
    
    Disables the 3D terrain visualization.
    
    #### Declaration
    
    Swift
    
    ```
    @MainActor
    public func disableTerrain() async
    ```
    
-   `[setTerrainExaggeration(_:animate:)](#/s:11MapTilerSDK9MTMapViewC22setTerrainExaggeration_7animateySd_SbtYaF)` Asynchronous
    
    Sets the terrain exaggeration.
    
    #### Declaration
    
    Swift
    
    ```
    @MainActor
    public func setTerrainExaggeration(_ exaggeration: Double, animate: Bool = true) async
    ```
    
    #### Parameters
    
    <table class="graybox"><tbody><tr><td><code><em>exaggeration</em></code></td><td><div><p>The new exaggeration factor.</p></div></td></tr><tr><td><code><em>animate</em></code></td><td><div><p>Whether to animate the transition. Defaults to <code>true</code>.</p></div></td></tr></tbody></table>
    
-   `[setTerrainAnimationDuration(_:)](#/s:11MapTilerSDK9MTMapViewC27setTerrainAnimationDurationyySdYaF)` Asynchronous
    
    Sets the animation duration of the terrain transitions.
    
    #### Declaration
    
    Swift
    
    ```
    @MainActor
    public func setTerrainAnimationDuration(_ duration: Double) async
    ```
    
    #### Parameters
    
    <table class="graybox"><tbody><tr><td><code><em>duration</em></code></td><td><div><p>The duration in milliseconds.</p></div></td></tr></tbody></table>
    
-   `[setTerrain(sourceId:exaggeration:)](#/s:11MapTilerSDK9MTMapViewC10setTerrain8sourceId12exaggerationySS_SdSgtYaF)` Asynchronous
    
    Sets the 3D terrain on the map.
    
    #### Declaration
    
    Swift
    
    ```
    @MainActor
    public func setTerrain(sourceId: String, exaggeration: Double? = nil) async
    ```
    
    #### Parameters
    
    <table class="graybox"><tbody><tr><td><code><em>sourceId</em></code></td><td><div><p>The ID of the terrain source.</p></div></td></tr><tr><td><code><em>exaggeration</em></code></td><td><div><p>Factor for volume boosting.</p></div></td></tr></tbody></table>
    
-   `[setTerrain()](#/s:11MapTilerSDK9MTMapViewC10setTerrainyyYaF)` Asynchronous
    
    Removes the 3D terrain from the map.
    
    #### Declaration
    
    Swift
    
    ```
    @MainActor
    public func setTerrain() async
    ```
    
-   `[hasTerrain()](#/s:11MapTilerSDK9MTMapViewC10hasTerrainSbyYaF)` Asynchronous
    
    Returns true if 3D terrain visualization is enabled.
    
    #### Declaration
    
    Swift
    
    ```
    @MainActor
    public func hasTerrain() async -> Bool
    ```
    
-   `[setVerticalFieldOfView(degrees:)](#/s:11MapTilerSDK9MTMapViewC018setVerticalFieldOfE07degreesySd_tYaF)` Asynchronous
    
    Sets the map’s vertical field of view, in degrees.
    
    The internal camera has a default vertical field of view of a wide ~36.86 degrees. In globe mode, such a large FOV reduces the amount of the Earth that can be seen at once and exaggerates the central part, comparably to a fisheye lens. In many cases, a narrower FOV is preferable.
    
    Note
    
    Default is 36.87.
    
    #### Declaration
    
    Swift
    
    ```
    @MainActor
    public func setVerticalFieldOfView(degrees: Double = 36.87) async
    ```
    
    #### Parameters
    
    <table class="graybox"><tbody><tr><td><code><em>degrees</em></code></td><td><div><p>The vertical field of view to set, in degrees (0-180).</p></div></td></tr></tbody></table>
    
-   `[setHalo(_:)](#/s:11MapTilerSDK9MTMapViewC7setHaloyyAA12MTHaloOptionOYaF)` Asynchronous
    
    Sets the atmospheric halo (glow) around the globe.
    
    Note
    
    Make sure halo is enabled and projection is set to Globe before initializing the map via MTMapOptions.
    
    #### Declaration
    
    Swift
    
    ```
    @MainActor
    public func setHalo(_ halo: MTHaloOption) async
    ```
    
    #### Parameters
    
    <table class="graybox"><tbody><tr><td><code><em>halo</em></code></td><td><div><p>Halo configuration or a boolean to enable default.</p></div></td></tr></tbody></table>
    
-   `[disableHaloAnimations()](#/s:11MapTilerSDK9MTMapViewC21disableHaloAnimationsyyYaF)` Asynchronous
    
    Disables state transitions/animations for halo updates.
    
    #### Declaration
    
    Swift
    
    ```
    @MainActor
    public func disableHaloAnimations() async
    ```
    
-   `[disableSpaceAnimations()](#/s:11MapTilerSDK9MTMapViewC22disableSpaceAnimationsyyYaF)` Asynchronous
    
    Disables state transitions/animations for space updates.
    
    #### Declaration
    
    Swift
    
    ```
    @MainActor
    public func disableSpaceAnimations() async
    ```
    
-   `[isSourceLoaded(id:)](#/s:11MapTilerSDK9MTMapViewC14isSourceLoaded2idSbSS_tYaF)` Asynchronous
    
    Returns boolean value indicating whether the source with provided id is loaded.
    
    #### Declaration
    
    Swift
    
    ```
    @MainActor
    public func isSourceLoaded(id: String) async -> Bool
    ```
    
    #### Parameters
    
    <table class="graybox"><tbody><tr><td><code><em>id</em></code></td><td><div><p>The id of the source.</p></div></td></tr></tbody></table>
    
-   `[areTilesLoaded()](#/s:11MapTilerSDK9MTMapViewC14areTilesLoadedSbyYaF)` Asynchronous
    
    Returns boolean value indicating whether all tiles required for the current viewport are loaded.
    
    #### Declaration
    
    Swift
    
    ```
    @MainActor
    public func areTilesLoaded() async -> Bool
    ```
    
-   `[isMapLoaded()](#/s:11MapTilerSDK9MTMapViewC02isA6LoadedSbyYaF)` Asynchronous
    
    Returns boolean value indicating whether the map is fully loaded.
    
    #### Declaration
    
    Swift
    
    ```
    @MainActor
    public func isMapLoaded() async -> Bool
    ```
    
-   `[loaded()](#/s:11MapTilerSDK9MTMapViewC6loadedSbyYaF)` Asynchronous
    
    Returns true when no ongoing operations remain and all sources/tiles are loaded.
    
    #### Declaration
    
    Swift
    
    ```
    @MainActor
    public func loaded() async -> Bool
    ```
    
-   `[isStyleLoaded()](#/s:11MapTilerSDK9MTMapViewC13isStyleLoadedSbyYaF)` Asynchronous
    
    Returns boolean value indicating whether the style is fully loaded.
    
    Use this method to check style readiness before manipulating layers or sources programmatically.
    
    #### Declaration
    
    Swift
    
    ```
    @MainActor
    public func isStyleLoaded() async -> Bool
    ```
    
-   `[getRenderWorldCopies()](#/s:11MapTilerSDK9MTMapViewC20getRenderWorldCopiesSbyYaF)` Asynchronous
    
    Returns boolean value indicating whether the map renders world copies.
    
    #### Declaration
    
    Swift
    
    ```
    @MainActor
    public func getRenderWorldCopies() async -> Bool
    ```
    
-   `[zoomIn(completionHandler:)](#/s:11MapTilerSDK9MTMapViewC6zoomIn17completionHandleryys6ResultOyytAA7MTErrorOGcSg_tF)`
    
    Increases the map’s zoom level by 1.
    
    #### Declaration
    
    Swift
    
    ```
    @available(iOS, deprecated: 16.0, message: "Prefer the async version for modern concurrency handling")
    @MainActor
    public func zoomIn(completionHandler: ((Result<Void, MTError>) -> Void)? = nil)
    ```
    
-   `[zoomOut(completionHandler:)](#/s:11MapTilerSDK9MTMapViewC7zoomOut17completionHandleryys6ResultOyytAA7MTErrorOGcSg_tF)`
    
    Decreases the map’s zoom level by 1.
    
    #### Declaration
    
    Swift
    
    ```
    @available(iOS, deprecated: 16.0, message: "Prefer the async version for modern concurrency handling")
    @MainActor
    public func zoomOut(completionHandler: ((Result<Void, MTError>) -> Void)? = nil)
    ```
    
    #### Parameters
    
    <table class="graybox"><tbody><tr><td><code><em>completionHandler</em></code></td><td><div><p>A handler block to execute when function finishes.</p></div></td></tr></tbody></table>
    
-   `[getZoom(completionHandler:)](#/s:11MapTilerSDK9MTMapViewC7getZoom17completionHandleryys6ResultOySdAA7MTErrorOGc_tF)`
    
    Returns the map’s current zoom level.
    
    #### Declaration
    
    Swift
    
    ```
    @available(iOS, deprecated: 16.0, message: "Prefer the async version for modern concurrency handling")
    @MainActor
    public func getZoom(completionHandler: @escaping (Result<Double, MTError>) -> Void)
    ```
    
    #### Parameters
    
    <table class="graybox"><tbody><tr><td><code><em>completionHandler</em></code></td><td><div><p>A handler block to execute when function finishes.</p></div></td></tr></tbody></table>
    
-   `[setZoom(_:completionHandler:)](#/s:11MapTilerSDK9MTMapViewC7setZoom_17completionHandlerySd_ys6ResultOyytAA7MTErrorOGcSgtF)`
    
    Sets the map’s zoom level.
    
    #### Declaration
    
    Swift
    
    ```
    @available(iOS, deprecated: 16.0, message: "Prefer the async version for modern concurrency handling")
    @MainActor
    public func setZoom(_ zoom: Double, completionHandler: ((Result<Void, MTError>) -> Void)? = nil)
    ```
    
    #### Parameters
    
    <table class="graybox"><tbody><tr><td><code><em>zoom</em></code></td><td><div><p>The zoom level to set (0-20).</p></div></td></tr><tr><td><code><em>completionHandler</em></code></td><td><div><p>A handler block to execute when function finishes.</p></div></td></tr></tbody></table>
    
-   `[zoomTo(_:options:completionHandler:)](#/s:11MapTilerSDK9MTMapViewC6zoomTo_7options17completionHandlerySd_AA18MTAnimationOptionsVSgys6ResultOyytAA7MTErrorOGcSgtF)`
    
    Zooms to the specified zoom level with an animated transition.
    
    #### Declaration
    
    Swift
    
    ```
    @available(iOS, deprecated: 16.0, message: "Prefer the async version for modern concurrency handling")
    @MainActor
    public func zoomTo(
        _ zoom: Double,
        options: MTAnimationOptions? = nil,
        completionHandler: ((Result<Void, MTError>) -> Void)? = nil
    )
    ```
    
    #### Parameters
    
    <table class="graybox"><tbody><tr><td><code><em>zoom</em></code></td><td><div><p>The zoom level to transition to.</p></div></td></tr><tr><td><code><em>options</em></code></td><td><div><p>Animation options to use.</p></div></td></tr><tr><td><code><em>completionHandler</em></code></td><td><div><p>A handler block to execute when function finishes.</p></div></td></tr></tbody></table>
    
-   `[zoomIn()](#/s:11MapTilerSDK9MTMapViewC6zoomInyyYaF)` Asynchronous
    
    Increases the map’s zoom level by 1.
    
    #### Declaration
    
    Swift
    
    ```
    @MainActor
    public func zoomIn() async
    ```
    
-   `[zoomOut()](#/s:11MapTilerSDK9MTMapViewC7zoomOutyyYaF)` Asynchronous
    
    Decreases the map’s zoom level by 1.
    
    #### Declaration
    
    Swift
    
    ```
    @MainActor
    public func zoomOut() async
    ```
    
-   `[getZoom()](#/s:11MapTilerSDK9MTMapViewC7getZoomSdyYaF)` Asynchronous
    
    Returns the map’s current zoom level.
    
    #### Declaration
    
    Swift
    
    ```
    @MainActor
    public func getZoom() async -> Double
    ```
    
-   `[setZoom(_:)](#/s:11MapTilerSDK9MTMapViewC7setZoomyySdYaF)` Asynchronous
    
    Sets the map’s zoom level.
    
    #### Declaration
    
    Swift
    
    ```
    @MainActor
    public func setZoom(_ zoom: Double) async
    ```
    
-   `[zoomTo(_:options:)](#/s:11MapTilerSDK9MTMapViewC6zoomTo_7optionsySd_AA18MTAnimationOptionsVSgtYaF)` Asynchronous
    
    Zooms to the specified zoom level with an animated transition.
    
    #### Declaration
    
    Swift
    
    ```
    @MainActor
    public func zoomTo(_ zoom: Double, options: MTAnimationOptions? = nil) async
    ```
    
    #### Parameters
    
    <table class="graybox"><tbody><tr><td><code><em>zoom</em></code></td><td><div><p>The zoom level to transition to.</p></div></td></tr><tr><td><code><em>options</em></code></td><td><div><p>Animation options to use.</p></div></td></tr></tbody></table>
    
-   `[didUpdateLocation(_:)](#/s:11MapTilerSDK25MTLocationManagerDelegateP17didUpdateLocationyySo10CLLocationCF)`
    
    #### Declaration
    
    Swift
    
    ```
    @MainActor
    public func didUpdateLocation(_ location: CLLocation)
    ```
    
-   `[didFailWithError(_:)](#/s:11MapTilerSDK25MTLocationManagerDelegateP16didFailWithErroryys0J0_pF)`
    
    #### Declaration
    
    Swift
    
    ```
    @MainActor
    public func didFailWithError(_ error: Error)
    ```
    
-   `[pinToSuperviewEdges()](#/s:11MapTilerSDK9MTMapViewC19pinToSuperviewEdgesyyF)`
    
    Pins the map view to its superview edges using auto layout.
    
    Note
    
    Map view must be added to the superview before calling the function.
    
    #### Declaration
    
    Swift
    
    ```
    @MainActor
    func pinToSuperviewEdges()
    ```
