MGLTextAnchor
enum MGLTextAnchor {}
Part of the text placed closest to the anchor.
Values of this type are used in the MGLSymbolStyleLayer.textAnchor
property.
-
The center of the text is placed closest to the anchor.
Declaration
Objective-C
MGLTextAnchorCenterSwift
case center = 0 -
The left side of the text is placed closest to the anchor.
Declaration
Objective-C
MGLTextAnchorLeftSwift
case left = 1 -
The right side of the text is placed closest to the anchor.
Declaration
Objective-C
MGLTextAnchorRightSwift
case right = 2 -
The top of the text is placed closest to the anchor.
Declaration
Objective-C
MGLTextAnchorTopSwift
case top = 3 -
The bottom of the text is placed closest to the anchor.
Declaration
Objective-C
MGLTextAnchorBottomSwift
case bottom = 4 -
The top left corner of the text is placed closest to the anchor.
Declaration
Objective-C
MGLTextAnchorTopLeftSwift
case topLeft = 5 -
The top right corner of the text is placed closest to the anchor.
Declaration
Objective-C
MGLTextAnchorTopRightSwift
case topRight = 6 -
The bottom left corner of the text is placed closest to the anchor.
Declaration
Objective-C
MGLTextAnchorBottomLeftSwift
case bottomLeft = 7 -
The bottom right corner of the text is placed closest to the anchor.
Declaration
Objective-C
MGLTextAnchorBottomRightSwift
case bottomRight = 8
Install in Dash
MGLTextAnchor Enumeration Reference