# MGLIconTranslationAnchor

    enum MGLIconTranslationAnchor {}

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

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

- `MGLIconTranslationAnchorMap`

  Icons are translated relative to the map.

  #### Declaration

  Objective-C

      MGLIconTranslationAnchorMap

  Swift

      case map = 0

  View Source on GitHub
- `MGLIconTranslationAnchorViewport`

  Icons are translated relative to the viewport.

  #### Declaration

  Objective-C

      MGLIconTranslationAnchorViewport

  Swift

      case viewport = 1

  View Source on GitHub