# MGLTextTranslationAnchor

    enum MGLTextTranslationAnchor {}

Controls the frame of reference for `MGLSymbolStyleLayer.textTranslation`.

Values of this type are used in the `MGLSymbolStyleLayer.textTranslationAnchor` property.

- `MGLTextTranslationAnchorMap`

  The text is translated relative to the map.

  #### Declaration

  Objective-C

      MGLTextTranslationAnchorMap

  Swift

      case map = 0

  View Source on GitHub
- `MGLTextTranslationAnchorViewport`

  The text is translated relative to the viewport.

  #### Declaration

  Objective-C

      MGLTextTranslationAnchorViewport

  Swift

      case viewport = 1

  View Source on GitHub