NSValue(MGLSymbolStyleLayerAdditions)
@interface NSValue (MGLSymbolStyleLayerAdditions)
Methods for wrapping an enumeration value for a style layer attribute in an
MGLSymbolStyleLayer
object and unwrapping its raw value.
-
Creates a new value object containing the given
MGLIconAnchor
enumeration.Declaration
Objective-C
+ (nonnull instancetype)valueWithMGLIconAnchor:(MGLIconAnchor)iconAnchor;
Swift
convenience init(mglIconAnchor iconAnchor: MGLIconAnchor)
Parameters
iconAnchor
The value for the new object.
Return Value
A new value object that contains the enumeration value.
-
The
MGLIconAnchor
enumeration representation of the value.Declaration
Objective-C
@property (atomic, readonly) MGLIconAnchor MGLIconAnchorValue;
Swift
var mglIconAnchorValue: MGLIconAnchor { get }
-
Creates a new value object containing the given
MGLIconPitchAlignment
enumeration.Declaration
Objective-C
+ (nonnull instancetype)valueWithMGLIconPitchAlignment: (MGLIconPitchAlignment)iconPitchAlignment;
Swift
convenience init(mglIconPitchAlignment iconPitchAlignment: MGLIconPitchAlignment)
Parameters
iconPitchAlignment
The value for the new object.
Return Value
A new value object that contains the enumeration value.
-
The
MGLIconPitchAlignment
enumeration representation of the value.Declaration
Objective-C
@property (atomic, readonly) MGLIconPitchAlignment MGLIconPitchAlignmentValue;
Swift
var mglIconPitchAlignmentValue: MGLIconPitchAlignment { get }
-
Creates a new value object containing the given
MGLIconRotationAlignment
enumeration.Declaration
Objective-C
+ (nonnull instancetype)valueWithMGLIconRotationAlignment: (MGLIconRotationAlignment)iconRotationAlignment;
Swift
convenience init(mglIconRotationAlignment iconRotationAlignment: MGLIconRotationAlignment)
Parameters
iconRotationAlignment
The value for the new object.
Return Value
A new value object that contains the enumeration value.
-
The
MGLIconRotationAlignment
enumeration representation of the value.Declaration
Objective-C
@property (atomic, readonly) MGLIconRotationAlignment MGLIconRotationAlignmentValue;
Swift
var mglIconRotationAlignmentValue: MGLIconRotationAlignment { get }
-
Creates a new value object containing the given
MGLIconTextFit
enumeration.Declaration
Objective-C
+ (nonnull instancetype)valueWithMGLIconTextFit:(MGLIconTextFit)iconTextFit;
Swift
convenience init(mglIconTextFit iconTextFit: MGLIconTextFit)
Parameters
iconTextFit
The value for the new object.
Return Value
A new value object that contains the enumeration value.
-
The
MGLIconTextFit
enumeration representation of the value.Declaration
Objective-C
@property (atomic, readonly) MGLIconTextFit MGLIconTextFitValue;
Swift
var mglIconTextFitValue: MGLIconTextFit { get }
-
Creates a new value object containing the given
MGLSymbolPlacement
enumeration.Declaration
Objective-C
+ (nonnull instancetype)valueWithMGLSymbolPlacement: (MGLSymbolPlacement)symbolPlacement;
Swift
convenience init(mglSymbolPlacement symbolPlacement: MGLSymbolPlacement)
Parameters
symbolPlacement
The value for the new object.
Return Value
A new value object that contains the enumeration value.
-
The
MGLSymbolPlacement
enumeration representation of the value.Declaration
Objective-C
@property (atomic, readonly) MGLSymbolPlacement MGLSymbolPlacementValue;
Swift
var mglSymbolPlacementValue: MGLSymbolPlacement { get }
-
Creates a new value object containing the given
MGLSymbolZOrder
enumeration.Declaration
Objective-C
+ (nonnull instancetype)valueWithMGLSymbolZOrder:(MGLSymbolZOrder)symbolZOrder;
Swift
convenience init(mglSymbolZOrder symbolZOrder: MGLSymbolZOrder)
Parameters
symbolZOrder
The value for the new object.
Return Value
A new value object that contains the enumeration value.
-
The
MGLSymbolZOrder
enumeration representation of the value.Declaration
Objective-C
@property (atomic, readonly) MGLSymbolZOrder MGLSymbolZOrderValue;
Swift
var mglSymbolZOrderValue: MGLSymbolZOrder { get }
-
Creates a new value object containing the given
MGLTextAnchor
enumeration.Declaration
Objective-C
+ (nonnull instancetype)valueWithMGLTextAnchor:(MGLTextAnchor)textAnchor;
Swift
convenience init(mglTextAnchor textAnchor: MGLTextAnchor)
Parameters
textAnchor
The value for the new object.
Return Value
A new value object that contains the enumeration value.
-
The
MGLTextAnchor
enumeration representation of the value.Declaration
Objective-C
@property (atomic, readonly) MGLTextAnchor MGLTextAnchorValue;
Swift
var mglTextAnchorValue: MGLTextAnchor { get }
-
Creates a new value object containing the given
MGLTextJustification
enumeration.Declaration
Objective-C
+ (nonnull instancetype)valueWithMGLTextJustification: (MGLTextJustification)textJustification;
Swift
convenience init(mglTextJustification textJustification: MGLTextJustification)
Parameters
textJustification
The value for the new object.
Return Value
A new value object that contains the enumeration value.
-
The
MGLTextJustification
enumeration representation of the value.Declaration
Objective-C
@property (atomic, readonly) MGLTextJustification MGLTextJustificationValue;
Swift
var mglTextJustificationValue: MGLTextJustification { get }
-
Creates a new value object containing the given
MGLTextPitchAlignment
enumeration.Declaration
Objective-C
+ (nonnull instancetype)valueWithMGLTextPitchAlignment: (MGLTextPitchAlignment)textPitchAlignment;
Swift
convenience init(mglTextPitchAlignment textPitchAlignment: MGLTextPitchAlignment)
Parameters
textPitchAlignment
The value for the new object.
Return Value
A new value object that contains the enumeration value.
-
The
MGLTextPitchAlignment
enumeration representation of the value.Declaration
Objective-C
@property (atomic, readonly) MGLTextPitchAlignment MGLTextPitchAlignmentValue;
Swift
var mglTextPitchAlignmentValue: MGLTextPitchAlignment { get }
-
Creates a new value object containing the given
MGLTextRotationAlignment
enumeration.Declaration
Objective-C
+ (nonnull instancetype)valueWithMGLTextRotationAlignment: (MGLTextRotationAlignment)textRotationAlignment;
Swift
convenience init(mglTextRotationAlignment textRotationAlignment: MGLTextRotationAlignment)
Parameters
textRotationAlignment
The value for the new object.
Return Value
A new value object that contains the enumeration value.
-
The
MGLTextRotationAlignment
enumeration representation of the value.Declaration
Objective-C
@property (atomic, readonly) MGLTextRotationAlignment MGLTextRotationAlignmentValue;
Swift
var mglTextRotationAlignmentValue: MGLTextRotationAlignment { get }
-
Creates a new value object containing the given
MGLTextTransform
enumeration.Declaration
Objective-C
+ (nonnull instancetype)valueWithMGLTextTransform: (MGLTextTransform)textTransform;
Swift
convenience init(mglTextTransform textTransform: MGLTextTransform)
Parameters
textTransform
The value for the new object.
Return Value
A new value object that contains the enumeration value.
-
The
MGLTextTransform
enumeration representation of the value.Declaration
Objective-C
@property (atomic, readonly) MGLTextTransform MGLTextTransformValue;
Swift
var mglTextTransformValue: MGLTextTransform { get }
-
Creates a new value object containing the given
MGLTextWritingMode
enumeration.Declaration
Objective-C
+ (nonnull instancetype)valueWithMGLTextWritingMode: (MGLTextWritingMode)textWritingModes;
Swift
convenience init(mglTextWritingMode textWritingModes: MGLTextWritingMode)
Parameters
textWritingModes
The value for the new object.
Return Value
A new value object that contains the enumeration value.
-
The
MGLTextWritingMode
enumeration representation of the value.Declaration
Objective-C
@property (atomic, readonly) MGLTextWritingMode MGLTextWritingModeValue;
Swift
var mglTextWritingModeValue: MGLTextWritingMode { get }
-
Creates a new value object containing the given
MGLIconTranslationAnchor
enumeration.Declaration
Objective-C
+ (nonnull instancetype)valueWithMGLIconTranslationAnchor: (MGLIconTranslationAnchor)iconTranslationAnchor;
Swift
convenience init(mglIconTranslationAnchor iconTranslationAnchor: MGLIconTranslationAnchor)
Parameters
iconTranslationAnchor
The value for the new object.
Return Value
A new value object that contains the enumeration value.
-
The
MGLIconTranslationAnchor
enumeration representation of the value.Declaration
Objective-C
@property (atomic, readonly) MGLIconTranslationAnchor MGLIconTranslationAnchorValue;
Swift
var mglIconTranslationAnchorValue: MGLIconTranslationAnchor { get }
-
Creates a new value object containing the given
MGLTextTranslationAnchor
enumeration.Declaration
Objective-C
+ (nonnull instancetype)valueWithMGLTextTranslationAnchor: (MGLTextTranslationAnchor)textTranslationAnchor;
Swift
convenience init(mglTextTranslationAnchor textTranslationAnchor: MGLTextTranslationAnchor)
Parameters
textTranslationAnchor
The value for the new object.
Return Value
A new value object that contains the enumeration value.
-
The
MGLTextTranslationAnchor
enumeration representation of the value.Declaration
Objective-C
@property (atomic, readonly) MGLTextTranslationAnchor MGLTextTranslationAnchorValue;
Swift
var mglTextTranslationAnchorValue: MGLTextTranslationAnchor { get }