Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Google Maps SDK for iOS doesn't display map content

I'm using the current version 1.1.2 of Google Maps SDK for iOS. The map only displays the Google logo, the current location and the added marker. But no map content whatsoever:

enter image description here

I correctly registered the API key:

BOOL result = [GMSServices provideAPIKey:@"<my key>"];

the result is YES and I verified that the bundleIdentifier matches with the API console. I load the GMSMapView from a storyboard and set the camera in my -viewDidLoad:

self.mapView.camera = [GMSCameraPosition cameraWithLatitude:0 longitude:0 zoom:2];

This is logged by GMSMapView:

Failed to make complete framebuffer object 8cd6
Failed to make complete framebuffer object 8cd6
Google Maps SDK for iOS version: 1.1.2.2533
GMSZoomTableQuadTree lacks root zoom table for tile type (mapType: 10)
GMSZoomTableQuadTree lacks root zoom table for tile type (mapType: 15)

Any idea what could cause this problem?

like image 291
Ortwin Gentz Avatar asked Apr 03 '13 22:04

Ortwin Gentz


People also ask

Why is Google Maps not working on iOS?

Turn on Location Services and Location Access for Maps. In the Settings app, tap Privacy, then tap Location Services. Make sure Location Services is turned on and Maps is set to While Using the App or Widgets. Set the date, time and time zone correctly on your device.

Is Google Maps iOS SDK free?

The Maps SDK for iOS uses a pay-as-you-go pricing model.

How do I make Google Maps Full Screen iOS?

Google notes that the new full-screen mode can be activated by “tapping an empty spot on the map,” while improved voice search brings the ability to “type, or tap the mic and say, “directions to” a place for faster results.”


2 Answers

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

like image 60
nenchev Avatar answered Sep 22 '22 13:09

nenchev


If you have included both GoogleMaps.framework and GoogleMapsM4B.framework (Maps for Business) in your XCode project, remove GoogleMapsM4B.framework.

Otherwise you'll need to enable Google Maps Mobile SDK for Work through Enterprise Support portal instead of Google Maps SDK for iOS from Cloud Console.

like image 42
she hates me Avatar answered Sep 25 '22 13:09

she hates me