MGLIconTextFit
enum MGLIconTextFit : NSUInteger {}
Scales the icon to fit around the associated text.
Values of this type are used in the iconTextFit
property of MGLSymbolStyleLayer
.
-
The icon is displayed at its intrinsic aspect ratio.
Declaration
Objective-C
MGLIconTextFitNone
Swift
case None
-
The icon is scaled in the x-dimension to fit the width of the text.
Declaration
Objective-C
MGLIconTextFitWidth
Swift
case Width
-
The icon is scaled in the y-dimension to fit the height of the text.
Declaration
Objective-C
MGLIconTextFitHeight
Swift
case Height
-
The icon is scaled in both x- and y-dimensions.
Declaration
Objective-C
MGLIconTextFitBoth
Swift
case Both