iOS SDK

API Reference

On This Page

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

MGLIconPitchAlignmentViewport

The icon is aligned to the plane of the viewport.

Declaration

Objective-C

MGLIconPitchAlignmentViewport

Swift

case viewport = 1

MGLIconPitchAlignmentAuto

Automatically matches the value of MGLSymbolStyleLayer.iconRotationAlignment.

Declaration

Objective-C

MGLIconPitchAlignmentAuto

Swift

case auto = 2