GMSPlacePicker not showing the map

时间:2016-05-17 11:17:03

标签: ios swift google-maps gmsplacepicker

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

5 个答案:

答案 0 :(得分:7)

Swift 3 - Xcode 10

对于遇到同样问题的其他人,有两件事:

  1. 确保在AppDelegate didFinishLaunchingWithOptions中输入正确的GMSService API密钥,代码为:

    GMSServices.provideAPIKey("YOURAPIKEY");
    
  2. 确保在Google Developers Console中启用Google Maps SDK for iOS

答案 1 :(得分:3)

现在必须解决你的问题。但这仍然可以帮助其他可能遇到这个问题的人。

我们可能尚未从Google Developer Console启用Google Maps SDK Api。从Google控制台启用该API再试一次。由于我遇到了同样的问题,通过控制台启用显示我的地图。

答案 2 :(得分:1)

我发现了缺少的内容:对其他框架的必需引用(这是一个干净的项目)

我添加了下面的列表后,地图已加载:

AVFoundation.framework
CoreData.framework
CoreLocation.framework
CoreText.framework
GLKit.framework
ImageIO.framework
libc++.dylib
libicucore.dylib
libz.dylib
OpenGLES.framework
QuartzCore.framework
SystemConfiguration.framework

答案 3 :(得分:1)

确保从开发人员门户启用Google MAP     https://console.developers.google.com/apis/library

为您的平台启用它

答案 4 :(得分:0)

AutomationPeer.ListenerExists(AutomationEvents.AutomationFocusChanged)

AutomationPeer