MGLSymbolStyleLayerTextRotationAlignment
enum MGLSymbolStyleLayerTextRotationAlignment : NSUInteger {}
In combination with symbolPlacement
, determines the rotation behavior of the individual glyphs forming the text.
-
When
symbolPlacement
is set toMGLSymbolStyleLayerSymbolPlacementPoint
, aligns text east-west. WhensymbolPlacement
is set toMGLSymbolStyleLayerSymbolPlacementLine
, aligns text x-axes with the line.Declaration
Objective-C
MGLSymbolStyleLayerTextRotationAlignmentMap
Swift
case map = 0
-
Produces glyphs whose x-axes are aligned with the x-axis of the viewport, regardless of the value of
symbolPlacement
.Declaration
Objective-C
MGLSymbolStyleLayerTextRotationAlignmentViewport
Swift
case viewport = 1
-
When
symbolPlacement
is set toMGLSymbolStyleLayerSymbolPlacementPoint
, this is equivalent toMGLSymbolStyleLayerTextRotationAlignmentViewport
. WhensymbolPlacement
is set toMGLSymbolStyleLayerSymbolPlacementLine
, this is equivalent toMGLSymbolStyleLayerTextRotationAlignmentMap
.Declaration
Objective-C
MGLSymbolStyleLayerTextRotationAlignmentAuto
Swift
case auto = 2