GoogleNavigation Framework Reference

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

    Swift

    case tilted = 0

    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