DingiIconRotationAlignment
enum DingiIconRotationAlignment {}
In combination with DingiSymbolStyleLayer.symbolPlacement
, determines the
rotation behavior of icons.
Values of this type are used in the DingiSymbolStyleLayer.iconRotationAlignment
property.
-
When
symbolPlacement
is set toDingiSymbolPlacementPoint
, aligns icons east-west. WhensymbolPlacement
is set toDingiSymbolPlacementLine
orDingiSymbolPlacementLineCenter
, aligns icon x-axes with the line.Declaration
Objective-C
DingiIconRotationAlignmentMap
Swift
case map = 0
-
Produces icons whose x-axes are aligned with the x-axis of the viewport, regardless of the value of
DingiSymbolStyleLayer.symbolPlacement
.Declaration
Objective-C
DingiIconRotationAlignmentViewport
Swift
case viewport = 1
-
When
symbolPlacement
is set toDingiSymbolPlacementPoint
, this is equivalent toDingiIconRotationAlignmentViewport
. WhensymbolPlacement
is set toDingiSymbolPlacementLine
orDingiSymbolPlacementLineCenter
, this is equivalent toDingiIconRotationAlignmentMap
.Declaration
Objective-C
DingiIconRotationAlignmentAuto
Swift
case auto = 2