提问人:adnan 提问时间:12/31/2012 更新时间:1/1/2013 访问量:6131
如何将谷歌地图集成到我的iPhone应用程序中[已关闭]
how can i integrate google map in my iphone app [closed]
问:
嗨,我在iPhone中集成Google地图时遇到问题。当我在 iPhone 模拟器上运行应用程序时,它在 iPhone 屏幕上加载时运行良好,没有任何错误,我只能看到红点,而不是整个地图,我已经使用谷歌地图集成教程实现了这个应用程序 从这个链接 https://developers.google.com/maps/documentation/ios/start 我提供了谷歌分配给我的 API 密钥,但是当应用程序在 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 个小时,我的老板对我生气,请帮助我
答:
3赞
Codo
1/1/2013
#1
“入门”页面显示:
如果您看到标记,但地图不可见,请确认您 已提供您的 API 密钥。
你真的申请了 iOS 版 Google Maps SDK 吗?您真的在 Google API 控制台的“服务”页面上看到适用于 iOS 的 Google Maps SDK 吗?(在我的 API 项目中,我看不到它。
您可能正在使用 Google Maps API v3 的 API 密钥,这是错误的服务,无法满足您的需求。
看起来谷歌还没有为iOS服务发送很多API密钥。您所能做的就是申请该服务并等待谷歌的答复。
评论
0赞
adnan
1/1/2013
是的,我也看不到它
0赞
Joachim Isaksson
1/1/2013
那么你可能必须申请正确的密钥。
0赞
adnan
1/1/2013
我已经填写了此表格并使用 Google 邮件 ID 注册,但无法看到适用于 iOS 的 Goog Maps SDK
0赞
Joachim Isaksson
1/1/2013
@adnan 您是否收到来自 Google 的带有密钥的邮件?如果是这样,它应该可以工作,如果您从控制台下载它,则可能是该服务的错误密钥。
0赞
dklt
1/10/2013
关于ios API密钥的任何更新?这里什么都没有。
上一个:提供 API 意味着什么
评论