MGLTextTranslateAnchor
enum MGLTextTranslateAnchor : NSUInteger {}
Controls the translation reference point.
Values of this type are used in the textTranslateAnchor
property of MGLSymbolStyleLayer
.
-
The text is translated relative to the map.
Declaration
Objective-C
MGLTextTranslateAnchorMap
Swift
case map = 0
-
The text is translated relative to the viewport.
Declaration
Objective-C
MGLTextTranslateAnchorViewport
Swift
case viewport = 1