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.
-
(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
MGLRasterResamplingModeLinearSwift
case linear = 0 -
Nearest neighbor filtering interpolates point values using the nearest original source point creating a sharp but pointated look when overscaled
Declaration
Objective-C
MGLRasterResamplingModeNearestSwift
case nearest = 1
Install in Dash
MGLRasterResamplingMode Enumeration Reference