MGLTextRotationAlignment
enum MGLTextRotationAlignment {}
In combination with MGLSymbolStyleLayer.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
orMGLSymbolPlacementLineCenter
, 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
MGLSymbolStyleLayer.symbolPlacement
.Declaration
Objective-C
MGLTextRotationAlignmentViewport
Swift
case viewport = 1
-
When
symbolPlacement
is set toMGLSymbolPlacementPoint
, this is equivalent toMGLTextRotationAlignmentViewport
. WhensymbolPlacement
is set toMGLSymbolPlacementLine
orMGLSymbolPlacementLineCenter
, this is equivalent toMGLTextRotationAlignmentMap
.Declaration
Objective-C
MGLTextRotationAlignmentAuto
Swift
case auto = 2