NSValue(MGLRasterStyleLayerAdditions)

@interface NSValue (MGLRasterStyleLayerAdditions)

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

Working with Raster Style Layer Attribute Values

+valueWithMGLRasterResamplingMode:

Creates a new value object containing the given MGLRasterResamplingMode enumeration.

Declaration

Objective-C

+ (nonnull instancetype)valueWithMGLRasterResamplingMode:
(MGLRasterResamplingMode)rasterResamplingMode;

Swift

convenience init(mglRasterResamplingMode rasterResamplingMode: MGLRasterResamplingMode)

Parameters

rasterResamplingMode

The value for the new object.

Return Value

A new value object that contains the enumeration value.

MGLRasterResamplingModeValue

The MGLRasterResamplingMode enumeration representation of the value.

Declaration

Objective-C

@property (atomic, readonly)
MGLRasterResamplingMode MGLRasterResamplingModeValue;

Swift

var mglRasterResamplingModeValue: MGLRasterResamplingMode { get }
iOS SDK

SDK JS Reference

On this page