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.

Working with Symbol Style Layer Attribute Values

+valueWithMGLIconAnchor:

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.

MGLIconAnchorValue

The MGLIconAnchor enumeration representation of the value.

Declaration

Objective-C

@property (atomic, readonly) MGLIconAnchor MGLIconAnchorValue;

Swift

var mglIconAnchorValue: MGLIconAnchor { get }

+valueWithMGLIconPitchAlignment:

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.

MGLIconPitchAlignmentValue

The MGLIconPitchAlignment enumeration representation of the value.

Declaration

Objective-C

@property (atomic, readonly) MGLIconPitchAlignment MGLIconPitchAlignmentValue;

Swift

var mglIconPitchAlignmentValue: MGLIconPitchAlignment { get }

+valueWithMGLIconRotationAlignment:

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.

MGLIconRotationAlignmentValue

The MGLIconRotationAlignment enumeration representation of the value.

Declaration

Objective-C

@property (atomic, readonly)
MGLIconRotationAlignment MGLIconRotationAlignmentValue;

Swift

var mglIconRotationAlignmentValue: MGLIconRotationAlignment { get }

+valueWithMGLIconTextFit:

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.

MGLIconTextFitValue

The MGLIconTextFit enumeration representation of the value.

Declaration

Objective-C

@property (atomic, readonly) MGLIconTextFit MGLIconTextFitValue;

Swift

var mglIconTextFitValue: MGLIconTextFit { get }

+valueWithMGLSymbolPlacement:

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.

MGLSymbolPlacementValue

The MGLSymbolPlacement enumeration representation of the value.

Declaration

Objective-C

@property (atomic, readonly) MGLSymbolPlacement MGLSymbolPlacementValue;

Swift

var mglSymbolPlacementValue: MGLSymbolPlacement { get }

+valueWithMGLSymbolZOrder:

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.

MGLSymbolZOrderValue

The MGLSymbolZOrder enumeration representation of the value.

Declaration

Objective-C

@property (atomic, readonly) MGLSymbolZOrder MGLSymbolZOrderValue;

Swift

var mglSymbolZOrderValue: MGLSymbolZOrder { get }

+valueWithMGLTextAnchor:

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.

MGLTextAnchorValue

The MGLTextAnchor enumeration representation of the value.

Declaration

Objective-C

@property (atomic, readonly) MGLTextAnchor MGLTextAnchorValue;

Swift

var mglTextAnchorValue: MGLTextAnchor { get }

+valueWithMGLTextJustification:

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.

MGLTextJustificationValue

The MGLTextJustification enumeration representation of the value.

Declaration

Objective-C

@property (atomic, readonly) MGLTextJustification MGLTextJustificationValue;

Swift

var mglTextJustificationValue: MGLTextJustification { get }

+valueWithMGLTextPitchAlignment:

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.

MGLTextPitchAlignmentValue

The MGLTextPitchAlignment enumeration representation of the value.

Declaration

Objective-C

@property (atomic, readonly) MGLTextPitchAlignment MGLTextPitchAlignmentValue;

Swift

var mglTextPitchAlignmentValue: MGLTextPitchAlignment { get }

+valueWithMGLTextRotationAlignment:

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.

MGLTextRotationAlignmentValue

The MGLTextRotationAlignment enumeration representation of the value.

Declaration

Objective-C

@property (atomic, readonly)
MGLTextRotationAlignment MGLTextRotationAlignmentValue;

Swift

var mglTextRotationAlignmentValue: MGLTextRotationAlignment { get }

+valueWithMGLTextTransform:

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.

MGLTextTransformValue

The MGLTextTransform enumeration representation of the value.

Declaration

Objective-C

@property (atomic, readonly) MGLTextTransform MGLTextTransformValue;

Swift

var mglTextTransformValue: MGLTextTransform { get }

+valueWithMGLTextWritingMode:

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.

MGLTextWritingModeValue

The MGLTextWritingMode enumeration representation of the value.

Declaration

Objective-C

@property (atomic, readonly) MGLTextWritingMode MGLTextWritingModeValue;

Swift

var mglTextWritingModeValue: MGLTextWritingMode { get }

+valueWithMGLIconTranslationAnchor:

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.

MGLIconTranslationAnchorValue

The MGLIconTranslationAnchor enumeration representation of the value.

Declaration

Objective-C

@property (atomic, readonly)
MGLIconTranslationAnchor MGLIconTranslationAnchorValue;

Swift

var mglIconTranslationAnchorValue: MGLIconTranslationAnchor { get }

+valueWithMGLTextTranslationAnchor:

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.

MGLTextTranslationAnchorValue

The MGLTextTranslationAnchor enumeration representation of the value.

Declaration

Objective-C

@property (atomic, readonly)
MGLTextTranslationAnchor MGLTextTranslationAnchorValue;

Swift

var mglTextTranslationAnchorValue: MGLTextTranslationAnchor { get }
iOS SDK

SDK JS Reference

On this page