MSFPanningSpeedMode
Objective-C
enum MSFPanningSpeedMode : NSInteger {}
Swift
enum MSFPanningSpeedMode : Int, @unchecked Sendable
How fast a one-finger pan moves the map on a TILTED view, where a touch near the horizon corresponds to a point far away and a touch at the bottom of the screen to a near one.
-
The map point under the finger follows it exactly, which is what a flat map does. On a tilted view the speed then changes DURING the gesture: a drag that starts near the camera and travels up the screen accelerates as the finger reaches parts of the screen that are further away.
Declaration
Objective-C
MSF_PANNING_SPEED_MODE_MAPSwift
case PANNING_SPEED_MODE_MAP = 0 -
The scale is measured where the pan STARTS and stays fixed for the whole gesture: starting far away still pans fast and starting close still pans slowly, but the speed never changes while the finger is down. The default.
Declaration
Objective-C
MSF_PANNING_SPEED_MODE_ANCHOREDSwift
case PANNING_SPEED_MODE_ANCHORED = 1 -
The scale is measured at the centre of the screen, so it depends neither on where the finger started nor on where it goes - every pan moves the map at the same rate.
Declaration
Objective-C
MSF_PANNING_SPEED_MODE_CONSTANTSwift
case PANNING_SPEED_MODE_CONSTANT = 2