If the navigation bar is visible, there is a compass button behind it. To make it appear under the navigation bar, you need to add a registration to the top of the map view.
Objective-c
UIEdgeInsets mapInsets = UIEdgeInsetsMake(80.0, 0.0, 0.0, 0.0); GMSMapView *mapView; mapView.padding = mapInsets;
Swift
let mapInsets = UIEdgeInsets(top: 80.0, left: 0.0, bottom: 0.0, right: 0.0) mapView.padding = mapInsets
source share