MGLTextAnchor
enum MGLTextAnchor : NSUInteger {}
Part of the text placed closest to the anchor.
Values of this type are used in the textAnchor
property of MGLSymbolStyleLayer
.
-
The center of the text is placed closest to the anchor.
Declaration
Objective-C
MGLTextAnchorCenter
Swift
case Center
-
The left side of the text is placed closest to the anchor.
Declaration
Objective-C
MGLTextAnchorLeft
Swift
case Left
-
The right side of the text is placed closest to the anchor.
Declaration
Objective-C
MGLTextAnchorRight
Swift
case Right
-
The top of the text is placed closest to the anchor.
Declaration
Objective-C
MGLTextAnchorTop
Swift
case Top
-
The bottom of the text is placed closest to the anchor.
Declaration
Objective-C
MGLTextAnchorBottom
Swift
case Bottom
-
The top left corner of the text is placed closest to the anchor.
Declaration
Objective-C
MGLTextAnchorTopLeft
Swift
case TopLeft
-
The top right corner of the text is placed closest to the anchor.
Declaration
Objective-C
MGLTextAnchorTopRight
Swift
case TopRight
-
The bottom left corner of the text is placed closest to the anchor.
Declaration
Objective-C
MGLTextAnchorBottomLeft
Swift
case BottomLeft
-
The bottom right corner of the text is placed closest to the anchor.
Declaration
Objective-C
MGLTextAnchorBottomRight
Swift
case BottomRight