# MGLTextPitchAlignment

    enum MGLTextPitchAlignment {}

Orientation of text when map is pitched.

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

- `MGLTextPitchAlignmentMap`

  The text is aligned to the plane of the map.

  #### Declaration

  Objective-C

      MGLTextPitchAlignmentMap

  Swift

      case map = 0

  View Source on GitHub
- `MGLTextPitchAlignmentViewport`

  The text is aligned to the plane of the viewport.

  #### Declaration

  Objective-C

      MGLTextPitchAlignmentViewport

  Swift

      case viewport = 1

  View Source on GitHub
- `MGLTextPitchAlignmentAuto`

  Automatically matches the value of `MGLSymbolStyleLayer.textRotationAlignment`.

  #### Declaration

  Objective-C

      MGLTextPitchAlignmentAuto

  Swift

      case auto = 2

  View Source on GitHub