Google Maps SDK for iOS doesn't display map content

Found the solution myself.

I'm using Auto Layout. Apparently, in -viewDidLoad the Auto Layout hasn't yet done its work and my GMSMapView still had a CGRectZero frame. GMSMapView seems to react very picky on a zero frame.

[self.view layoutIfNeeded];

prior to setting the camera solved the problem for me.


This could also be caused by not having the right bundle ID entered under the API key in your Google API Console.


Just in case someone comes here and nothing works...

I was having this problem and got bored so I unzoomed the map and discovered I messed up with the location and my map center was in the middle of a desert! Map was working just fine.

So try to unzoom, just in case.