MGLIconTranslateAnchor
enum MGLIconTranslateAnchor : NSUInteger {}
Controls the translation reference point.
Values of this type are used in the iconTranslateAnchor
property of MGLSymbolStyleLayer
.
-
Icons are translated relative to the map.
Declaration
Objective-C
MGLIconTranslateAnchorMap
Swift
case map = 0
-
Icons are translated relative to the viewport.
Declaration
Objective-C
MGLIconTranslateAnchorViewport
Swift
case viewport = 1