MGLIconTextFit
enum MGLIconTextFit {}
The directions in which the icon stretches to fit around the text. If the icon image is a resizable image, the resizable areas may be stretched, while the cap insets are always drawn at the original scale.
Values of this type are used in the MGLSymbolStyleLayer.iconTextFit
property.
-
The icon is displayed at its intrinsic aspect ratio.
Declaration
Objective-C
MGLIconTextFitNoneSwift
case none = 0 -
The icon is scaled in the x-dimension to fit the width of the text.
Declaration
Objective-C
MGLIconTextFitWidthSwift
case width = 1 -
The icon is scaled in the y-dimension to fit the height of the text.
Declaration
Objective-C
MGLIconTextFitHeightSwift
case height = 2 -
The icon is scaled in both x- and y-dimensions.
Declaration
Objective-C
MGLIconTextFitBothSwift
case both = 3
Install in Dash
MGLIconTextFit Enumeration Reference