---
title: "MTLineTranslateAnchor | Mobile sdk | Mobile sdk ios | Ios"
description: "Controls the frame of reference for line translate."
---

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

# MTLineTranslateAnchor

```
public enum MTLineTranslateAnchor : String
```

Controls the frame of reference for line translate.

-   `[map](#/s:11MapTilerSDK21MTLineTranslateAnchorO3mapyA2CmF)`
    
    The line is translated relative to the map.
    
    #### Declaration
    
    Swift
    
    ```
    case map
    ```
    
-   `[viewport](#/s:11MapTilerSDK21MTLineTranslateAnchorO8viewportyA2CmF)`
    
    The line is translated relative to the viewport.
    
    #### Declaration
    
    Swift
    
    ```
    case viewport
    ```
