MSFFreeRoamMode

Objective-C

enum MSFFreeRoamMode : NSInteger {}

Swift

enum MSFFreeRoamMode : Int, @unchecked Sendable

Possible free roam modes: what a one-finger drag does, and which camera model the tilt and the rotation follow.

  • Off: the standard map gestures. A one-finger drag pans the map.

    Declaration

    Objective-C

    MSF_FREE_ROAM_MODE_OFF

    Swift

    case FREE_ROAM_MODE_OFF = 0
  • Look: a one-finger drag turns the heading (sideways) and tilts (up/down) instead of panning; the camera still orbits its focus point. Panning moves to a two-finger drag; pinch and two-finger rotation are unchanged.

    Declaration

    Objective-C

    MSF_FREE_ROAM_MODE_LOOK

    Swift

    case FREE_ROAM_MODE_LOOK = 1
  • First person: a one-finger drag turns the view about the camera, whose position never changes; a two-finger drag moves forward/back and strafes. Pinch and two-finger rotation are off. setTilt and setMapRotation also turn the view in place, so an orientation-driven camera matches the drag.

    Declaration

    Objective-C

    MSF_FREE_ROAM_MODE_FIRST_PERSON

    Swift

    case FREE_ROAM_MODE_FIRST_PERSON = 2