---
title: "MTFillTranslateAnchor | Mobile sdk | Mobile sdk ios | Ios"
description: "Enum controlling the frame of reference for fill 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.

# MTFillTranslateAnchor

```
public enum MTFillTranslateAnchor : String
```

Enum controlling the frame of reference for fill translate.

-   `[map](#/s:11MapTilerSDK21MTFillTranslateAnchorO3mapyA2CmF)`
    
    The fill is translated relative to the map.
    
    #### Declaration
    
    Swift
    
    ```
    case map
    ```
    
-   `[viewport](#/s:11MapTilerSDK21MTFillTranslateAnchorO8viewportyA2CmF)`
    
    The fill is translated relative to the viewport.
    
    #### Declaration
    
    Swift
    
    ```
    case viewport
    ```
