MSFFlightEasing
Objective-C
enum MSFFlightEasing : NSInteger {}
Swift
enum MSFFlightEasing : Int, @unchecked Sendable
The timing curve a flyTo runs its clock through. The CSS curves, by their CSS names.
-
cubic-bezier(0.25, 0.1, 0.25, 1), the CSS “ease”. The default, and mapbox-gl’s.
Declaration
Objective-C
MSF_FLIGHT_EASING_EASESwift
case FLIGHT_EASING_EASE = 0 -
No easing: the constant speed Van Wijk prescribes. Starts and stops abruptly.
Declaration
Objective-C
MSF_FLIGHT_EASING_LINEARSwift
case FLIGHT_EASING_LINEAR = 1 -
cubic-bezier(0.42, 0, 1, 1). Gentle start, arrives at full speed.
Declaration
Objective-C
MSF_FLIGHT_EASING_EASE_INSwift
case FLIGHT_EASING_EASE_IN = 2 -
cubic-bezier(0, 0, 0.58, 1). Starts at full speed, comes to a stop.
Declaration
Objective-C
MSF_FLIGHT_EASING_EASE_OUTSwift
case FLIGHT_EASING_EASE_OUT = 3 -
cubic-bezier(0.42, 0, 0.58, 1). Symmetric, stronger than FLIGHT_EASING_EASE.
Declaration
Objective-C
MSF_FLIGHT_EASING_EASE_IN_OUTSwift
case FLIGHT_EASING_EASE_IN_OUT = 4