NSValue(MGLFillExtrusionStyleLayerAdditions)

@interface NSValue (MGLFillExtrusionStyleLayerAdditions)

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

Working with Fill extrusion Style Layer Attribute Values

+valueWithMGLFillExtrusionTranslationAnchor:

Creates a new value object containing the given MGLFillExtrusionTranslationAnchor enumeration.

Declaration

Objective-C

+ (nonnull instancetype)valueWithMGLFillExtrusionTranslationAnchor:
(MGLFillExtrusionTranslationAnchor)fillExtrusionTranslationAnchor;

Swift

convenience init(mglFillExtrusionTranslationAnchor fillExtrusionTranslationAnchor: MGLFillExtrusionTranslationAnchor)

Parameters

fillExtrusionTranslationAnchor

The value for the new object.

Return Value

A new value object that contains the enumeration value.

MGLFillExtrusionTranslationAnchorValue

The MGLFillExtrusionTranslationAnchor enumeration representation of the value.

Declaration

Objective-C

@property (atomic, readonly)
MGLFillExtrusionTranslationAnchor MGLFillExtrusionTranslationAnchorValue;

Swift

var mglFillExtrusionTranslationAnchorValue: MGLFillExtrusionTranslationAnchor { get }
iOS SDK

SDK JS Reference

On this page