GoogleNavigation Framework Reference

  • GMSNavigationCameraPerspective defines different camera views when tracking user location.

  • GMSNavigationCameraPerspectiveTilted provides a tilted view facing the user's direction, positioning them centrally or near the bottom depending on guidance status.

  • GMSNavigationCameraPerspectiveTopDownNorthUp offers a north-oriented top-down view, keeping the user centered.

  • GMSNavigationCameraPerspectiveTopDownHeadingUp gives a top-down perspective aligned with the user's bearing, positioning them similarly to the tilted view based on guidance.

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