MGLIconAnchor
enum MGLIconAnchor : NSUInteger {}
Part of the icon placed closest to the anchor.
Values of this type are used in the MGLSymbolStyleLayer.iconAnchor
property.
-
The center of the icon is placed closest to the anchor.
Declaration
Objective-C
MGLIconAnchorCenter
Swift
case center = 0
-
The left side of the icon is placed closest to the anchor.
Declaration
Objective-C
MGLIconAnchorLeft
Swift
case left = 1
-
The right side of the icon is placed closest to the anchor.
Declaration
Objective-C
MGLIconAnchorRight
Swift
case right = 2
-
The top of the icon is placed closest to the anchor.
Declaration
Objective-C
MGLIconAnchorTop
Swift
case top = 3
-
The bottom of the icon is placed closest to the anchor.
Declaration
Objective-C
MGLIconAnchorBottom
Swift
case bottom = 4
-
The top left corner of the icon is placed closest to the anchor.
Declaration
Objective-C
MGLIconAnchorTopLeft
Swift
case topLeft = 5
-
The top right corner of the icon is placed closest to the anchor.
Declaration
Objective-C
MGLIconAnchorTopRight
Swift
case topRight = 6
-
The bottom left corner of the icon is placed closest to the anchor.
Declaration
Objective-C
MGLIconAnchorBottomLeft
Swift
case bottomLeft = 7
-
The bottom right corner of the icon is placed closest to the anchor.
Declaration
Objective-C
MGLIconAnchorBottomRight
Swift
case bottomRight = 8