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
symbolPlacementis set toMGLSymbolPlacementPoint, aligns text east-west. WhensymbolPlacementis set toMGLSymbolPlacementLineorMGLSymbolPlacementLineCenter, aligns text x-axes with the line.Declaration
Objective-C
MGLTextRotationAlignmentMapSwift
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
MGLTextRotationAlignmentViewportSwift
case viewport = 1 -
When
symbolPlacementis set toMGLSymbolPlacementPoint, this is equivalent toMGLTextRotationAlignmentViewport. WhensymbolPlacementis set toMGLSymbolPlacementLineorMGLSymbolPlacementLineCenter, this is equivalent toMGLTextRotationAlignmentMap.Declaration
Objective-C
MGLTextRotationAlignmentAutoSwift
case auto = 2
Install in Dash
MGLTextRotationAlignment Enumeration Reference