GoogleNavigation Framework Reference
Stay organized with collections
Save and categorize content based on your preferences.
GMSNavigationCameraPerspective
enum GMSNavigationCameraPerspective : NSInteger {}
The different camera perspectives that can be set when following the user location.
-
The camera automatically rotates to face the user bearing and is tilted. When guidance is
inactive, the user location is positioned at the center of the viewport. When guidance is
active, the user location is positioned near the bottom of the viewport.
Declaration
Objective-C
GMSNavigationCameraPerspectiveTilted = 0
-
The camera is always oriented north and looks directly downwards. The user location is
positioned at the center of the screen.
Declaration
Swift
case topDownNorthUp = 1
Objective-C
GMSNavigationCameraPerspectiveTopDownNorthUp
-
The camera automatically rotates to face the user bearing and looks directly downwards. When
guidance is inactive, the user location is positioned at the center of the viewport. When
guidance is active, the user location is positioned near the bottom of the viewport.
Declaration
Swift
case topDownHeadingUp = 2
Objective-C
GMSNavigationCameraPerspectiveTopDownHeadingUp
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2025-08-27 UTC.
[null,null,["Last updated 2025-08-27 UTC."],[[["\u003cp\u003e\u003ccode\u003eGMSNavigationCameraPerspective\u003c/code\u003e defines different camera views when tracking user location.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003eGMSNavigationCameraPerspectiveTilted\u003c/code\u003e provides a tilted view facing the user's direction, positioning them centrally or near the bottom depending on guidance status.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003eGMSNavigationCameraPerspectiveTopDownNorthUp\u003c/code\u003e offers a north-oriented top-down view, keeping the user centered.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003eGMSNavigationCameraPerspectiveTopDownHeadingUp\u003c/code\u003e gives a top-down perspective aligned with the user's bearing, positioning them similarly to the tilted view based on guidance.\u003c/p\u003e\n"]]],[],null,["# GoogleNavigation Framework Reference\n\nGMSNavigationCameraPerspective\n==============================\n\n enum GMSNavigationCameraPerspective : NSInteger {}\n\nThe different camera perspectives that can be set when following the user location.\n- `\n ``\n ``\n `\n\n ### [GMSNavigationCameraPerspectiveTilted](#/c:@E@GMSNavigationCameraPerspective@GMSNavigationCameraPerspectiveTilted)\n\n `\n ` \n The camera automatically rotates to face the user bearing and is tilted. When guidance is\n inactive, the user location is positioned at the center of the viewport. When guidance is\n active, the user location is positioned near the bottom of the viewport. \n\n #### Declaration\n\n Swift \n\n case tilted = 0\n\n Objective-C \n\n GMSNavigationCameraPerspectiveTilted = 0\n\n- `\n ``\n ``\n `\n\n ### [GMSNavigationCameraPerspectiveTopDownNorthUp](#/c:@E@GMSNavigationCameraPerspective@GMSNavigationCameraPerspectiveTopDownNorthUp)\n\n `\n ` \n The camera is always oriented north and looks directly downwards. The user location is\n positioned at the center of the screen. \n\n #### Declaration\n\n Swift \n\n case topDownNorthUp = 1\n\n Objective-C \n\n GMSNavigationCameraPerspectiveTopDownNorthUp\n\n- `\n ``\n ``\n `\n\n ### [GMSNavigationCameraPerspectiveTopDownHeadingUp](#/c:@E@GMSNavigationCameraPerspective@GMSNavigationCameraPerspectiveTopDownHeadingUp)\n\n `\n ` \n The camera automatically rotates to face the user bearing and looks directly downwards. When\n guidance is inactive, the user location is positioned at the center of the viewport. When\n guidance is active, the user location is positioned near the bottom of the viewport. \n\n #### Declaration\n\n Swift \n\n case topDownHeadingUp = 2\n\n Objective-C \n\n GMSNavigationCameraPerspectiveTopDownHeadingUp"]]