MGLRasterResamplingMode

enum MGLRasterResamplingMode {}

The resampling/interpolation method to use for overscaling, also known as texture magnification filter

Values of this type are used in the MGLRasterStyleLayer.rasterResamplingMode property.

MGLRasterResamplingModeLinear

(Bi)linear filtering interpolates point values using the weighted average of the four closest original source points creating a smooth but blurry look when overscaled

Declaration

Objective-C

MGLRasterResamplingModeLinear

Swift

case linear = 0

MGLRasterResamplingModeNearest

Nearest neighbor filtering interpolates point values using the nearest original source point creating a sharp but pointated look when overscaled

Declaration

Objective-C

MGLRasterResamplingModeNearest

Swift

case nearest = 1
iOS SDK

SDK JS Reference

On this page