3

I have integrated GMSPlacePickerConfig for iOS and the place picker is working - so I can see places around me and also search using the auto complete.

The only problem I have at the moment is wi the map which currently only displays the icons without the actual map data (streets etc)

How can enable the map to show more details?

Picket with empty map

Doron Goldberg
  • 643
  • 1
  • 9
  • 23

5 Answers5

7

Swift 3 - Xcode 10

For anyone else encountering the same issue, two things:

  1. Make sure you put correct GMSService API Key in AppDelegate didFinishLaunchingWithOptions, the code:

    GMSServices.provideAPIKey("YOURAPIKEY");
    
  2. Make sure you enable Google Maps SDK for iOS in Google Developers Console

Indra Adam
  • 269
  • 3
  • 8
3

Your problem must be solved now. But still this can help anyone else who might be facing this problem.

We might have not enabled Google Maps SDK Api from Google Developer Console. Try again by enabling that API from Google Console. As I was having the same problem, by enabling from the console shows my maps.

1

I found out what was missing: The required references to the other frameworks (it was a clean project)

Once I have added the list below the map was loaded:

AVFoundation.framework
CoreData.framework
CoreLocation.framework
CoreText.framework
GLKit.framework
ImageIO.framework
libc++.dylib
libicucore.dylib
libz.dylib
OpenGLES.framework
QuartzCore.framework
SystemConfiguration.framework
Doron Goldberg
  • 643
  • 1
  • 9
  • 23
1

Make sure to enable Google MAPs from developer portal https://console.developers.google.com/apis/library

And Enable it for your platform

Omar Freewan
  • 2,678
  • 4
  • 25
  • 49
0
// Enable Google Places Api in Google Developer Console .
// Use these in App Delegate
GMSPlacesClient.provideAPIKey("key") 

or

GMSServices.provideAPIKey("key")
pacification
  • 5,838
  • 4
  • 29
  • 51
Hitesh Chauhan
  • 1,520
  • 15
  • 16