# MGLAnnotationVerticalAlignment

    enum MGLAnnotationVerticalAlignment {}

The vertical alignment of an annotation within a map view. Used with `MGLMapView.userLocationVerticalAlignment`.

- `MGLAnnotationVerticalAlignmentCenter`

  Aligns the annotation vertically in the center of the map view.

  #### Declaration

  Objective-C

      MGLAnnotationVerticalAlignmentCenter = 0

  Swift

      case center = 0

  View Source on GitHub
- `MGLAnnotationVerticalAlignmentTop`

  Aligns the annotation vertically at the top of the map view.

  #### Declaration

  Objective-C

      MGLAnnotationVerticalAlignmentTop

  Swift

      case top = 1

  View Source on GitHub
- `MGLAnnotationVerticalAlignmentBottom`

  Aligns the annotation vertically at the bottom of the map view.

  #### Declaration

  Objective-C

      MGLAnnotationVerticalAlignmentBottom

  Swift

      case bottom = 2

  View Source on GitHub