---
title: "MTCameraOptions | Mobile sdk | Mobile sdk ios | Ios"
description: "Options for controlling the desired location, zoom, bearing, and pitch of the camera."
---

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

# MTCameraOptions

```
public struct MTCameraOptions : Sendable
```

```
extension MTCameraOptions: Codable
```

Options for controlling the desired location, zoom, bearing, and pitch of the camera.

-   `[center](#/s:11MapTilerSDK15MTCameraOptionsV6centerSo22CLLocationCoordinate2DVSgvp)`
    
    Geographical center of the map.
    
    #### Declaration
    
    Swift
    
    ```
    public var center: CLLocationCoordinate2D?
    ```
    
-   `[zoom](#/s:11MapTilerSDK15MTCameraOptionsV4zoomSdSgvp)`
    
    Zoom level of the map.
    
    #### Declaration
    
    Swift
    
    ```
    public var zoom: Double?
    ```
    
-   `[bearing](#/s:11MapTilerSDK15MTCameraOptionsV7bearingSdSgvp)`
    
    The bearing of the map, measured in degrees counter-clockwise from north.
    
    #### Declaration
    
    Swift
    
    ```
    public var bearing: Double?
    ```
    
-   `[pitch](#/s:11MapTilerSDK15MTCameraOptionsV5pitchSdSgvp)`
    
    The pitch (tilt) of the map, measured in degrees away from the plane of the screen (0-85).
    
    #### Declaration
    
    Swift
    
    ```
    public var pitch: Double?
    ```
    
-   `[init(center:zoom:bearing:pitch:)](#/s:11MapTilerSDK15MTCameraOptionsV6center4zoom7bearing5pitchACSo22CLLocationCoordinate2DVSg_SdSgA2Ktcfc)`
    
    Initializes options.
    
    #### Declaration
    
    Swift
    
    ```
    public init(
        center: CLLocationCoordinate2D? = nil,
        zoom: Double? = nil,
        bearing: Double? = nil,
        pitch: Double? = nil
    )
    ```
    
-   `[encode(to:)](#/s:SE6encode2toys7Encoder_p_tKF)`
    
    #### Declaration
    
    Swift
    
    ```
    public func encode(to encoder: Encoder) throws
    ```
