MGLSymbolStyleLayerIconRotationAlignment
enum MGLSymbolStyleLayerIconRotationAlignment : NSUInteger {}
In combination with symbolPlacement
, determines the rotation behavior of icons.
-
When
symbolPlacement
is set toMGLSymbolStyleLayerSymbolPlacementPoint
, aligns icons east-west. WhensymbolPlacement
is set toMGLSymbolStyleLayerSymbolPlacementLine
, aligns icon x-axes with the line.Declaration
Objective-C
MGLSymbolStyleLayerIconRotationAlignmentMap
Swift
case map = 0
-
Produces icons whose x-axes are aligned with the x-axis of the viewport, regardless of the value of
symbolPlacement
.Declaration
Objective-C
MGLSymbolStyleLayerIconRotationAlignmentViewport
Swift
case viewport = 1
-
When
symbolPlacement
is set toMGLSymbolStyleLayerSymbolPlacementPoint
, this is equivalent toMGLSymbolStyleLayerIconRotationAlignmentViewport
. WhensymbolPlacement
is set toMGLSymbolStyleLayerSymbolPlacementLine
, this is equivalent toMGLSymbolStyleLayerIconRotationAlignmentMap
.Declaration
Objective-C
MGLSymbolStyleLayerIconRotationAlignmentAuto
Swift
case auto = 2