MGLInterpolationMode
enum MGLInterpolationMode : NSUInteger {}
The modes used to interpolate property values between map zoom level changes or over a range of feature attribute values.
-
Values between two stops are interpolated exponentially or linearly if the
MGLStyleFunctionOptionInterpolationBase
is 1.Declaration
Objective-C
MGLInterpolationModeExponential = 0
Swift
case exponential = 0
-
Values between two stops are not interpolated. Instead, properties are set to the value of the stop just less than the function input.
Declaration
Objective-C
MGLInterpolationModeInterval
Swift
case interval = 1
-
Values between two stops are not interpolated. Instead, properties are set to the value of the stop equal to the function input’s key value.
Declaration
Objective-C
MGLInterpolationModeCategorical
Swift
case categorical = 2
-
Values between two stops are not interpolated. Instead, values are set to their input value.
Declaration
Objective-C
MGLInterpolationModeIdentity
Swift
case identity = 3