NSValue(MGLFillStyleLayerAdditions)

@interface NSValue (MGLFillStyleLayerAdditions)

Methods for wrapping an enumeration value for a style layer attribute in an MGLFillStyleLayer object and unwrapping its raw value.

Working with Fill Style Layer Attribute Values

+valueWithMGLFillTranslationAnchor:

Creates a new value object containing the given MGLFillTranslationAnchor enumeration.

Declaration

Objective-C

+ (nonnull instancetype)valueWithMGLFillTranslationAnchor:
(MGLFillTranslationAnchor)fillTranslationAnchor;

Swift

convenience init(mglFillTranslationAnchor fillTranslationAnchor: MGLFillTranslationAnchor)

Parameters

fillTranslationAnchor

The value for the new object.

Return Value

A new value object that contains the enumeration value.

MGLFillTranslationAnchorValue

The MGLFillTranslationAnchor enumeration representation of the value.

Declaration

Objective-C

@property (atomic, readonly)
MGLFillTranslationAnchor MGLFillTranslationAnchorValue;

Swift

var mglFillTranslationAnchorValue: MGLFillTranslationAnchor { get }
iOS SDK

SDK JS Reference

On this page