MGLTextRotationAlignment
enum MGLTextRotationAlignment {}
In combination with symbolPlacement
, determines the rotation behavior of the
individual glyphs forming the text.
Values of this type are used in the MGLSymbolStyleLayer.textRotationAlignment
property.
-
When
symbolPlacement
is set toMGLSymbolPlacementPoint
, aligns text east-west. WhensymbolPlacement
is set toMGLSymbolPlacementLine
, aligns text x-axes with the line.Declaration
Objective-C
MGLTextRotationAlignmentMap
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
MGLTextRotationAlignmentViewport
Swift
case viewport = 1
-
When
symbolPlacement
is set toMGLSymbolPlacementPoint
, this is equivalent toMGLTextRotationAlignmentViewport
. WhensymbolPlacement
is set toMGLSymbolPlacementLine
, this is equivalent toMGLTextRotationAlignmentMap
.Declaration
Objective-C
MGLTextRotationAlignmentAuto
Swift
case auto = 2