AI-generated Key Takeaways
-
GMSNavigationCameraModeis an enum defining how the camera behaves during navigation. -
It offers three modes:
free(user-controlled),following(tracks user location), andoverview(displays the remaining route). -
Each mode dictates the camera's perspective and movement during navigation, enhancing the user experience.
GMSNavigationCameraMode
enum GMSNavigationCameraMode : NSInteger {}The camera mode which determines the camera following behavior.
-
Disables camera following. The camera is in this mode when it is being panned by the user.
Declaration
Swift
case free = 0Objective-C
GMSNavigationCameraModeFree = 0 -
Follows the user location with the current followingPerspective.
Declaration
Swift
case following = 1Objective-C
GMSNavigationCameraModeFollowing -
Shows an overview of the remaining route. This is dynamically updated in guidance mode.
Declaration
Swift
case overview = 2Objective-C
GMSNavigationCameraModeOverview