---
title: "MTHillshadeIlluminationAnchor | Mobile sdk | Mobile sdk ios | Ios"
description: "Direction of light source when map is rotated."
---

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

# MTHillshadeIlluminationAnchor

```
public enum MTHillshadeIlluminationAnchor : String
```

Direction of light source when map is rotated.

-   `[map](#/s:11MapTilerSDK29MTHillshadeIlluminationAnchorO3mapyA2CmF)`
    
    The hillshade illumination is relative to the north direction.
    
    #### Declaration
    
    Swift
    
    ```
    case map
    ```
    
-   `[viewport](#/s:11MapTilerSDK29MTHillshadeIlluminationAnchorO8viewportyA2CmF)`
    
    The hillshade illumination is relative to the top of the viewport.
    
    #### Declaration
    
    Swift
    
    ```
    case viewport
    ```
