DingiTextRotationAlignment
enum DingiTextRotationAlignment {}
In combination with DingiSymbolStyleLayer.symbolPlacement
, determines the
rotation behavior of the individual glyphs forming the text.
Values of this type are used in the DingiSymbolStyleLayer.textRotationAlignment
property.
-
When
symbolPlacement
is set toDingiSymbolPlacementPoint
, aligns text east-west. WhensymbolPlacement
is set toDingiSymbolPlacementLine
orDingiSymbolPlacementLineCenter
, aligns text x-axes with the line.Declaration
Objective-C
DingiTextRotationAlignmentMap
Swift
case map = 0
-
Produces glyphs whose x-axes are aligned with the x-axis of the viewport, regardless of the value of
DingiSymbolStyleLayer.symbolPlacement
.Declaration
Objective-C
DingiTextRotationAlignmentViewport
Swift
case viewport = 1
-
When
symbolPlacement
is set toDingiSymbolPlacementPoint
, this is equivalent toDingiTextRotationAlignmentViewport
. WhensymbolPlacement
is set toDingiSymbolPlacementLine
orDingiSymbolPlacementLineCenter
, this is equivalent toDingiTextRotationAlignmentMap
.Declaration
Objective-C
DingiTextRotationAlignmentAuto
Swift
case auto = 2