# MGLIconPitchAlignment

    enum MGLIconPitchAlignment {}

Orientation of icon when map is pitched.

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

- `MGLIconPitchAlignmentMap`

  The icon is aligned to the plane of the map.

  #### Declaration

  Objective-C

      MGLIconPitchAlignmentMap

  Swift

      case map = 0

  View Source on GitHub
- `MGLIconPitchAlignmentViewport`

  The icon is aligned to the plane of the viewport.

  #### Declaration

  Objective-C

      MGLIconPitchAlignmentViewport

  Swift

      case viewport = 1

  View Source on GitHub
- `MGLIconPitchAlignmentAuto`

  Automatically matches the value of `MGLSymbolStyleLayer.iconRotationAlignment`.

  #### Declaration

  Objective-C

      MGLIconPitchAlignmentAuto

  Swift

      case auto = 2

  View Source on GitHub