# MGLTextAnchor

    enum MGLTextAnchor {}

Part of the text placed closest to the anchor.

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

- `MGLTextAnchorCenter`

  The center of the text is placed closest to the anchor.

  #### Declaration

  Objective-C

      MGLTextAnchorCenter

  Swift

      case center = 0

  View Source on GitHub
- `MGLTextAnchorLeft`

  The left side of the text is placed closest to the anchor.

  #### Declaration

  Objective-C

      MGLTextAnchorLeft

  Swift

      case left = 1

  View Source on GitHub
- `MGLTextAnchorRight`

  The right side of the text is placed closest to the anchor.

  #### Declaration

  Objective-C

      MGLTextAnchorRight

  Swift

      case right = 2

  View Source on GitHub
- `MGLTextAnchorTop`

  The top of the text is placed closest to the anchor.

  #### Declaration

  Objective-C

      MGLTextAnchorTop

  Swift

      case top = 3

  View Source on GitHub
- `MGLTextAnchorBottom`

  The bottom of the text is placed closest to the anchor.

  #### Declaration

  Objective-C

      MGLTextAnchorBottom

  Swift

      case bottom = 4

  View Source on GitHub
- `MGLTextAnchorTopLeft`

  The top left corner of the text is placed closest to the anchor.

  #### Declaration

  Objective-C

      MGLTextAnchorTopLeft

  Swift

      case topLeft = 5

  View Source on GitHub
- `MGLTextAnchorTopRight`

  The top right corner of the text is placed closest to the anchor.

  #### Declaration

  Objective-C

      MGLTextAnchorTopRight

  Swift

      case topRight = 6

  View Source on GitHub
- `MGLTextAnchorBottomLeft`

  The bottom left corner of the text is placed closest to the anchor.

  #### Declaration

  Objective-C

      MGLTextAnchorBottomLeft

  Swift

      case bottomLeft = 7

  View Source on GitHub
- `MGLTextAnchorBottomRight`

  The bottom right corner of the text is placed closest to the anchor.

  #### Declaration

  Objective-C

      MGLTextAnchorBottomRight

  Swift

      case bottomRight = 8

  View Source on GitHub