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. On a tilted view the speed then changes during the gesture, accelerating as the finger moves toward the far part of the screen.

    Declaration

    Objective-C

    MSF_PANNING_SPEED_MODE_MAP

    Swift

    case PANNING_SPEED_MODE_MAP = 0
  • The scale is measured where the pan starts and stays fixed for the whole gesture, so the speed never changes while the finger is down. The default.

    Declaration

    Objective-C

    MSF_PANNING_SPEED_MODE_ANCHORED

    Swift

    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_CONSTANT

    Swift

    case PANNING_SPEED_MODE_CONSTANT = 2