MGLIconRotationAlignment
enum MGLIconRotationAlignment : NSUInteger {}
In combination with MGLSymbolStyleLayer.symbolPlacement
, determines the
rotation behavior of icons.
Values of this type are used in the MGLSymbolStyleLayer.iconRotationAlignment
property.
-
When
symbolPlacement
is set toMGLSymbolPlacementPoint
, aligns icons east-west. WhensymbolPlacement
is set toMGLSymbolPlacementLine
orMGLSymbolPlacementLineCenter
, aligns icon x-axes with the line.Declaration
Objective-C
MGLIconRotationAlignmentMap
Swift
case map = 0
-
Produces icons whose x-axes are aligned with the x-axis of the viewport, regardless of the value of
MGLSymbolStyleLayer.symbolPlacement
.Declaration
Objective-C
MGLIconRotationAlignmentViewport
Swift
case viewport = 1
-
When
symbolPlacement
is set toMGLSymbolPlacementPoint
, this is equivalent toMGLIconRotationAlignmentViewport
. WhensymbolPlacement
is set toMGLSymbolPlacementLine
orMGLSymbolPlacementLineCenter
, this is equivalent toMGLIconRotationAlignmentMap
.Declaration
Objective-C
MGLIconRotationAlignmentAuto
Swift
case auto = 2