---
title: "MTMarkerPitchAlignment | Mobile sdk | Mobile sdk ios | Ios"
description: "Alignment for marker pitch relative to map or viewport."
---

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

# MTMarkerPitchAlignment

```
public enum MTMarkerPitchAlignment : String, Sendable, Codable
```

Alignment for marker pitch relative to map or viewport.

-   `[map](#/s:11MapTilerSDK22MTMarkerPitchAlignmentO3mapyA2CmF)`
    
    Aligns the marker with the plane of the map.
    
    #### Declaration
    
    Swift
    
    ```
    case map
    ```
    
-   `[viewport](#/s:11MapTilerSDK22MTMarkerPitchAlignmentO8viewportyA2CmF)`
    
    Aligns the marker with the viewport plane.
    
    #### Declaration
    
    Swift
    
    ```
    case viewport
    ```
    
-   `[auto](#/s:11MapTilerSDK22MTMarkerPitchAlignmentO4autoyA2CmF)`
    
    Automatically matches the marker’s rotation alignment.
    
    #### Declaration
    
    Swift
    
    ```
    case auto
    ```
