我如何在我的iPhone应用程序中集成谷歌地图

时间:2012-12-31 15:47:21

标签: iphone objective-c ios

嗨我在我的iphone中集成谷歌地图有问题。当我在iphone模拟器上运行应用程序时它运行良好没有任何错误,当它加载到iPhone屏幕上我只能看到红点而不是整个地图我已经使用谷歌地图集成教程从这个链接实现了这个应用程序 https://developers.google.com/maps/documentation/ios/start  我已经提供了谷歌指定给我的api密钥,但是当app在iphone中加载时,这个nslog会不断生成

2012-12-31 20:36:17.132 google map[848:12e03] provideAPIKey: should be called at most once
2012-12-31 20:36:17.747 google map[848:12e03] GMSZoomTableQuadTree lacks root zoom table for tile type (mapType: 10)
2012-12-31 20:36:19.062 google map[848:12e03] ClientParametersRequest failed, 3 attempts remaining. Error Domain=DASHConnectionError Code=100 "The operation couldn’t be completed. (DASHConnectionError error 100.)"
2012-12-31 20:36:19.196 google map[848:14603] Google Maps SDK for iOS version: 1.0.1.1154
2012-12-31 20:36:19.244 google map[848:12e03] ClientParametersRequest failed, 2 attempts remaining. Error Domain=DASHConnectionError Code=100 "The operation couldn’t be completed. (DASHConnectionError error 100.)"
2012-12-31 20:36:25.618 google map[848:12e03] ClientParametersRequest failed, 1 attempts remaining. Error Domain=DASHConnectionError Code=100 "The operation couldn’t be completed. (DASHConnectionError error 100.)"
2012-12-31 20:36:33.793 google map[848:12e03] ClientParametersRequest failed, 0 attempts remaining. Error Domain=DASHConnectionError Code=100 "The operation couldn’t be completed. (DASHConnectionError error 100.)"
2012-12-31 20:36:39.026 google map[848:12e03] ClientParametersRequest failed, 3 attempts remaining. Error Domain=DASHConnectionError Code=100 "The operation couldn’t be completed. (DASHConnectionError error 100.)"
2012-12-31 20:36:40.885 google map[848:12e03] ClientParametersRequest failed, 2 attempts remaining. Error Domain=DASHConnectionError Code=100 "The operation couldn’t be completed. (DASHConnectionError error 100.)"
2012-12-31 20:36:45.096 google map[848:12e03] ClientParametersRequest failed, 1 attempts remaining. Error Domain=DASHConnectionError Code=100 "The operation couldn’t be completed. (DASHConnectionError error 100.)"
2012-12-31 20:36:53.275 google map[848:12e03] ClientParametersRequest failed, 0 attempts remaining. Error Domain=DASHConnectionError Code=100 "The operation couldn’t be completed. (DASHConnectionError error 100.)"
2012-12-31 20:37:00.036 google map[848:12e03] ClientParametersRequest failed, 3 attempts remaining. Error Domain=DASHConnectionError Code=100 "The operation couldn’t be completed. (DASHConnectionError error 100.)"
2012-12-31 20:37:00.335 google map[848:12e03] ClientParametersRequest failed, 2 attempts remaining. Error Domain=DASHConnectionError Code=100 "The operation couldn’t be completed. (DASHConnectionError error 100.)"
2012-12-31 20:37:04.719 google map[848:12e03] ClientParametersRequest failed, 1 attempts remaining. Error Domain=DASHConnectionError Code=100 "The operation couldn’t be completed. (DASHConnectionError error 100.)"
2012-12-31 20:37:12.941 google map[848:12e03] ClientParametersRequest failed, 0 attempts remaining. Error Domain=DASHConnectionError Code=100 "The operation couldn’t be completed. (DASHConnectionError error 100.)"
2012-12-31 20:37:25.739 google map[848:12e03] ClientParametersRequest failed, 3 attempts remaining. Error Domain=DASHConnectionError Code=100 "The operation couldn’t be completed. (DASHConnectionError error 100.)"
2012-12-31 20:37:26.057 google map[848:12e03] ClientParametersRequest failed, 2 attempts remaining. Error Domain=DASHConnectionError Code=100 "The operation couldn’t be completed. (DASHConnectionError error 100.)"
2012-12-31 20:37:32.466 google map[848:12e03] ClientParametersRequest failed, 1 attempts remaining. Error Domain=DASHConnectionError Code=100 "The operation couldn’t be completed. (DASHConnectionError error 100.)"
2012-12-31 20:37:40.932 google map[848:12e03] ClientParametersRequest failed, 0 attempts remaining. Error Domain=DASHConnectionError Code=100 "The operation couldn’t be completed. (DASHConnectionError error 100.)"
2012-12-31 20:37:56.592 google map[848:12e03] ClientParametersRequest failed, 3 attempts remaining. Error Domain=DASHConnectionError Code=100 "The operation couldn’t be completed. (DASHConnectionError error 100.)"
2012-12-31 20:37:57.050 google map[848:12e03] ClientParametersRequest failed, 2 attempts remaining. Error Domain=DASHConnectionError Code=100 "The operation couldn’t be completed. (DASHConnectionError error 100.)"
2012-12-31 20:38:02.515 google map[848:12e03] ClientParametersRequest failed, 1 attempts remaining. Error Domain=DASHConnectionError Code=100 "The operation couldn’t be completed. (DASHConnectionError error 100.)"
2012-12-31 20:38:10.864 google map[848:12e03] ClientParametersRequest failed, 0 attempts remaining. Error Domain=DASHConnectionError Code=100 "The operation couldn’t be completed. (DASHConnectionError error 100.)"
2012-12-31 20:38:33.764 google map[848:12e03] ClientParametersRequest failed, 3 attempts remaining. Error Domain=DASHConnectionError Code=100 "The operation couldn’t be completed. (DASHConnectionError error 100.)"
2012-12-31 20:38:34.018 google map[848:12e03] ClientParametersRequest failed, 2 attempts remaining. Error Domain=DASHConnectionError Code=100 "The operation couldn’t be completed. (DASHConnectionError error 100.)"
2012-12-31 20:38:38.405 google map[848:12e03] ClientParametersRequest failed, 1 attempts remaining. Error Domain=DASHConnectionError Code=100 "The operation couldn’t be completed. (DASHConnectionError error 100.)"
2012-12-31 20:38:46.651 google map[848:12e03] ClientParametersRequest failed, 0 attempts remaining. Error Domain=DASHConnectionError Code=100 "The operation couldn’t be completed. (DASHConnectionError error 100.)"
2012-12-31 20:39:19.375 google map[848:12e03] ClientParametersRequest failed, 3 attempts remaining. Error Domain=DASHConnectionError Code=100 "The operation couldn’t be completed. (DASHConnectionError error 100.)"
2012-12-31 20:39:19.625 google map[848:12e03] ClientParametersRequest failed, 2 attempts remaining. Error Domain=DASHConnectionError Code=100 "The operation couldn’t be completed. (DASHConnectionError error 100.)"
2012-12-31 20:39:23.874 google map[848:12e03] ClientParametersRequest failed, 1 attempts remaining. Error Domain=DASHConnectionError Code=100 "The operation couldn’t be completed. (DASHConnectionError error 100.)"
2012-12-31 20:39:32.150 google map[848:12e03] ClientParametersRequest failed, 0 attempts remaining. Error Domain=DASHConnectionError Code=100 "The operation couldn’t be completed. (DASHConnectionError error 100.)"
2012-12-31 20:40:18.172 google map[848:12e03] ClientParametersRequest failed, 3 attempts remaining. Error Domain=DASHConnectionError Code=100 "The operation couldn’t be completed. (DASHConnectionError error 100.)"
2012-12-31 20:40:18.427 google map[848:12e03] ClientParametersRequest failed, 2 attempts remaining. Error Domain=DASHConnectionError Code=100 "The operation couldn’t be completed. (DASHConnectionError error 100.)"
2012-12-31 20:40:22.677 google map[848:12e03] ClientParametersRequest failed, 1 attempts remaining. Error Domain=DASHConnectionError Code=100 "The operation couldn’t be completed. (DASHConnectionError error 100.)"
2012-12-31 20:40:31.162 google map[848:12e03] ClientParametersRequest failed, 0 attempts remaining. Error Domain=DASHConnectionError Code=100 "The operation couldn’t be completed. (DASHConnectionError error 100.)"
2012-12-31 20:41:42.868 google map[848:12e03] ClientParametersRequest failed, 3 attempts remaining. Error Domain=DASHConnectionError Code=100 "The operation couldn’t be completed. (DASHConnectionError error 100.)"
2012-12-31 20:41:43.128 google map[848:12e03] ClientParametersRequest failed, 2 attempts remaining. Error Domain=DASHConnectionError Code=100 "The operation couldn’t be completed. (DASHConnectionError error 100.)"
2012-12-31 20:41:48.785 google map[848:12e03] ClientParametersRequest failed, 1 attempts remaining. Error Domain=DASHConnectionError Code=100 "The operation couldn’t be completed. (DASHConnectionError error 100.)"
2012-12-31 20:41:57.027 google map[848:12e03] ClientParametersRequest failed, 0 attempts remaining. Error Domain=DASHConnectionError Code=100 "The operation couldn’t be completed. (DASHConnectionError error 100.)"
2012-12-31 20:43:43.507 google map[848:12e03] ClientParametersRequest failed, 3 attempts remaining. Error Domain=DASHConnectionError Code=100 "The operation couldn’t be completed. (DASHConnectionError error 100.)"
2012-12-31 20:43:43.879 google map[848:12e03] ClientParametersRequest failed, 2 attempts remaining. Error Domain=DASHConnectionError Code=100 "The operation couldn’t be completed. (DASHConnectionError error 100.)"
2012-12-31 20:43:48.065 google map[848:12e03] ClientParametersRequest failed, 1 attempts remaining. Error Domain=DASHConnectionError Code=100 "The operation couldn’t be completed. (DASHConnectionError error 100.)"
2012-12-31 20:43:56.264 google map[848:12e03] ClientParametersRequest failed, 0 attempts remaining. Error Domain=DASHConnectionError Code=100 "The operation couldn’t be completed. (DASHConnectionError error 100.)"

如此善意地告诉我我需要做什么,因为我浪费了6到7个小时,而我的老板对我生气请帮帮我

1 个答案:

答案 0 :(得分:3)

Getting Started page说:

  

如果您看到标记,但地图不可见,请确认您   提供了您的API密钥。

您是否真的申请了 Google Maps SDK for iOS ?您是否真的在Google API控制台的服务页面上看到 Google Maps SDK for iOS ? (在我的API项目中,我看不到它。)

您可能正在使用 Google Maps API v3 的API密钥,这是您想要做的错误服务。

Google似乎还没有为iOS服务发送过许多API密钥。您所能做的就是申请服务并等待Google的回答。