iOS SDK

API Reference

On This Page

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

MGLAnnotationVerticalAlignmentTop

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

Declaration

Objective-C

MGLAnnotationVerticalAlignmentTop

Swift

case top = 1

MGLAnnotationVerticalAlignmentBottom

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

Declaration

Objective-C

MGLAnnotationVerticalAlignmentBottom

Swift

case bottom = 2