MSFMapMoveReason
Objective-C
enum MSFMapMoveReason : NSInteger {}
Swift
enum MSFMapMoveReason : Int, @unchecked Sendable
What caused a camera change. Carried by every camera event, so an app can tell its own moves from the user’s without watching touches itself.
-
The user, directly: a gesture, a mouse wheel, or the inertia that follows one.
Declaration
Objective-C
MSF_MAP_MOVE_REASON_GESTURESwift
case MAP_MOVE_REASON_GESTURE = 0 -
An animation the SDK is stepping - a flight, or a move given a duration. The call that started it reported the reason it was made with; every frame after that is this one.
Declaration
Objective-C
MSF_MAP_MOVE_REASON_ANIMATIONSwift
case MAP_MOVE_REASON_ANIMATION = 1 -
The app, through a call that took effect immediately: setFocusPos, setZoom, an option change that moved the camera.
Declaration
Objective-C
MSF_MAP_MOVE_REASON_APISwift
case MAP_MOVE_REASON_API = 2