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
MGLIconAnchorenumeration.Declaration
Objective-C
+ (nonnull instancetype)valueWithMGLIconAnchor:(MGLIconAnchor)iconAnchor;Swift
convenience init(mglIconAnchor iconAnchor: MGLIconAnchor)Parameters
iconAnchorThe value for the new object.
Return Value
A new value object that contains the enumeration value.
-
The
MGLIconAnchorenumeration representation of the value.Declaration
Objective-C
@property (readonly) MGLIconAnchor MGLIconAnchorValue;Swift
var mglIconAnchorValue: MGLIconAnchor { get } -
Creates a new value object containing the given
MGLIconPitchAlignmentenumeration.Declaration
Objective-C
+ (nonnull instancetype)valueWithMGLIconPitchAlignment: (MGLIconPitchAlignment)iconPitchAlignment;Swift
convenience init(mglIconPitchAlignment iconPitchAlignment: MGLIconPitchAlignment)Parameters
iconPitchAlignmentThe value for the new object.
Return Value
A new value object that contains the enumeration value.
-
The
MGLIconPitchAlignmentenumeration representation of the value.Declaration
Objective-C
@property (readonly) MGLIconPitchAlignment MGLIconPitchAlignmentValue;Swift
var mglIconPitchAlignmentValue: MGLIconPitchAlignment { get } -
Creates a new value object containing the given
MGLIconRotationAlignmentenumeration.Declaration
Objective-C
+ (nonnull instancetype)valueWithMGLIconRotationAlignment: (MGLIconRotationAlignment)iconRotationAlignment;Swift
convenience init(mglIconRotationAlignment iconRotationAlignment: MGLIconRotationAlignment)Parameters
iconRotationAlignmentThe value for the new object.
Return Value
A new value object that contains the enumeration value.
-
The
MGLIconRotationAlignmentenumeration representation of the value.Declaration
Objective-C
@property (readonly) MGLIconRotationAlignment MGLIconRotationAlignmentValue;Swift
var mglIconRotationAlignmentValue: MGLIconRotationAlignment { get } -
Creates a new value object containing the given
MGLIconTextFitenumeration.Declaration
Objective-C
+ (nonnull instancetype)valueWithMGLIconTextFit:(MGLIconTextFit)iconTextFit;Swift
convenience init(mglIconTextFit iconTextFit: MGLIconTextFit)Parameters
iconTextFitThe value for the new object.
Return Value
A new value object that contains the enumeration value.
-
The
MGLIconTextFitenumeration representation of the value.Declaration
Objective-C
@property (readonly) MGLIconTextFit MGLIconTextFitValue;Swift
var mglIconTextFitValue: MGLIconTextFit { get } -
Creates a new value object containing the given
MGLSymbolPlacementenumeration.Declaration
Objective-C
+ (nonnull instancetype)valueWithMGLSymbolPlacement: (MGLSymbolPlacement)symbolPlacement;Swift
convenience init(mglSymbolPlacement symbolPlacement: MGLSymbolPlacement)Parameters
symbolPlacementThe value for the new object.
Return Value
A new value object that contains the enumeration value.
-
The
MGLSymbolPlacementenumeration representation of the value.Declaration
Objective-C
@property (readonly) MGLSymbolPlacement MGLSymbolPlacementValue;Swift
var mglSymbolPlacementValue: MGLSymbolPlacement { get } -
Creates a new value object containing the given
MGLSymbolZOrderenumeration.Declaration
Objective-C
+ (nonnull instancetype)valueWithMGLSymbolZOrder:(MGLSymbolZOrder)symbolZOrder;Swift
convenience init(mglSymbolZOrder symbolZOrder: MGLSymbolZOrder)Parameters
symbolZOrderThe value for the new object.
Return Value
A new value object that contains the enumeration value.
-
The
MGLSymbolZOrderenumeration representation of the value.Declaration
Objective-C
@property (readonly) MGLSymbolZOrder MGLSymbolZOrderValue;Swift
var mglSymbolZOrderValue: MGLSymbolZOrder { get } -
Creates a new value object containing the given
MGLTextAnchorenumeration.Declaration
Objective-C
+ (nonnull instancetype)valueWithMGLTextAnchor:(MGLTextAnchor)textAnchor;Swift
convenience init(mglTextAnchor textAnchor: MGLTextAnchor)Parameters
textAnchorThe value for the new object.
Return Value
A new value object that contains the enumeration value.
-
The
MGLTextAnchorenumeration representation of the value.Declaration
Objective-C
@property (readonly) MGLTextAnchor MGLTextAnchorValue;Swift
var mglTextAnchorValue: MGLTextAnchor { get } -
Creates a new value object containing the given
MGLTextJustificationenumeration.Declaration
Objective-C
+ (nonnull instancetype)valueWithMGLTextJustification: (MGLTextJustification)textJustification;Swift
convenience init(mglTextJustification textJustification: MGLTextJustification)Parameters
textJustificationThe value for the new object.
Return Value
A new value object that contains the enumeration value.
-
The
MGLTextJustificationenumeration representation of the value.Declaration
Objective-C
@property (readonly) MGLTextJustification MGLTextJustificationValue;Swift
var mglTextJustificationValue: MGLTextJustification { get } -
Creates a new value object containing the given
MGLTextPitchAlignmentenumeration.Declaration
Objective-C
+ (nonnull instancetype)valueWithMGLTextPitchAlignment: (MGLTextPitchAlignment)textPitchAlignment;Swift
convenience init(mglTextPitchAlignment textPitchAlignment: MGLTextPitchAlignment)Parameters
textPitchAlignmentThe value for the new object.
Return Value
A new value object that contains the enumeration value.
-
The
MGLTextPitchAlignmentenumeration representation of the value.Declaration
Objective-C
@property (readonly) MGLTextPitchAlignment MGLTextPitchAlignmentValue;Swift
var mglTextPitchAlignmentValue: MGLTextPitchAlignment { get } -
Creates a new value object containing the given
MGLTextRotationAlignmentenumeration.Declaration
Objective-C
+ (nonnull instancetype)valueWithMGLTextRotationAlignment: (MGLTextRotationAlignment)textRotationAlignment;Swift
convenience init(mglTextRotationAlignment textRotationAlignment: MGLTextRotationAlignment)Parameters
textRotationAlignmentThe value for the new object.
Return Value
A new value object that contains the enumeration value.
-
The
MGLTextRotationAlignmentenumeration representation of the value.Declaration
Objective-C
@property (readonly) MGLTextRotationAlignment MGLTextRotationAlignmentValue;Swift
var mglTextRotationAlignmentValue: MGLTextRotationAlignment { get } -
Creates a new value object containing the given
MGLTextTransformenumeration.Declaration
Objective-C
+ (nonnull instancetype)valueWithMGLTextTransform: (MGLTextTransform)textTransform;Swift
convenience init(mglTextTransform textTransform: MGLTextTransform)Parameters
textTransformThe value for the new object.
Return Value
A new value object that contains the enumeration value.
-
The
MGLTextTransformenumeration representation of the value.Declaration
Objective-C
@property (readonly) MGLTextTransform MGLTextTransformValue;Swift
var mglTextTransformValue: MGLTextTransform { get } -
Creates a new value object containing the given
MGLTextWritingModeenumeration.Declaration
Objective-C
+ (nonnull instancetype)valueWithMGLTextWritingMode: (MGLTextWritingMode)textWritingModes;Swift
convenience init(mglTextWritingMode textWritingModes: MGLTextWritingMode)Parameters
textWritingModesThe value for the new object.
Return Value
A new value object that contains the enumeration value.
-
The
MGLTextWritingModeenumeration representation of the value.Declaration
Objective-C
@property (readonly) MGLTextWritingMode MGLTextWritingModeValue;Swift
var mglTextWritingModeValue: MGLTextWritingMode { get } -
Creates a new value object containing the given
MGLIconTranslationAnchorenumeration.Declaration
Objective-C
+ (nonnull instancetype)valueWithMGLIconTranslationAnchor: (MGLIconTranslationAnchor)iconTranslationAnchor;Swift
convenience init(mglIconTranslationAnchor iconTranslationAnchor: MGLIconTranslationAnchor)Parameters
iconTranslationAnchorThe value for the new object.
Return Value
A new value object that contains the enumeration value.
-
The
MGLIconTranslationAnchorenumeration representation of the value.Declaration
Objective-C
@property (readonly) MGLIconTranslationAnchor MGLIconTranslationAnchorValue;Swift
var mglIconTranslationAnchorValue: MGLIconTranslationAnchor { get } -
Creates a new value object containing the given
MGLTextTranslationAnchorenumeration.Declaration
Objective-C
+ (nonnull instancetype)valueWithMGLTextTranslationAnchor: (MGLTextTranslationAnchor)textTranslationAnchor;Swift
convenience init(mglTextTranslationAnchor textTranslationAnchor: MGLTextTranslationAnchor)Parameters
textTranslationAnchorThe value for the new object.
Return Value
A new value object that contains the enumeration value.
-
The
MGLTextTranslationAnchorenumeration representation of the value.Declaration
Objective-C
@property (readonly) MGLTextTranslationAnchor MGLTextTranslationAnchorValue;Swift
var mglTextTranslationAnchorValue: MGLTextTranslationAnchor { get }
Install in Dash
NSValue(MGLSymbolStyleLayerAdditions) Category Reference