iOS SDK

API Reference

On This Page

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

MGLTextPitchAlignmentViewport

The text is aligned to the plane of the viewport.

Declaration

Objective-C

MGLTextPitchAlignmentViewport

Swift

case viewport = 1

MGLTextPitchAlignmentAuto

Automatically matches the value of MGLSymbolStyleLayer.textRotationAlignment.

Declaration

Objective-C

MGLTextPitchAlignmentAuto

Swift

case auto = 2