NSValue(MGLHillshadeStyleLayerAdditions)

@interface NSValue (MGLHillshadeStyleLayerAdditions)

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

Working with Hillshade Style Layer Attribute Values

+valueWithMGLHillshadeIlluminationAnchor:

Creates a new value object containing the given MGLHillshadeIlluminationAnchor enumeration.

Declaration

Objective-C

+ (nonnull instancetype)valueWithMGLHillshadeIlluminationAnchor:
(MGLHillshadeIlluminationAnchor)hillshadeIlluminationAnchor;

Swift

convenience init(mglHillshadeIlluminationAnchor hillshadeIlluminationAnchor: MGLHillshadeIlluminationAnchor)

Parameters

hillshadeIlluminationAnchor

The value for the new object.

Return Value

A new value object that contains the enumeration value.

MGLHillshadeIlluminationAnchorValue

The MGLHillshadeIlluminationAnchor enumeration representation of the value.

Declaration

Objective-C

@property (atomic, readonly)
MGLHillshadeIlluminationAnchor MGLHillshadeIlluminationAnchorValue;

Swift

var mglHillshadeIlluminationAnchorValue: MGLHillshadeIlluminationAnchor { get }
iOS SDK

SDK JS Reference

On this page