Google Maps SDK未显示所有地点

时间:2014-07-01 08:43:20

标签: ios google-maps google-maps-sdk-ios gmsmapview

我正在使用 Google Maps SDK 在我的应用中显示地图。一切都很好,除了我的mapview看起来是空的,因为没有显示所有的地方。当我从谷歌地图应用程序打开相同的位置时,所有地方都会显示商店,办公室,医院等。我的mapview有什么问题。

我在 Google Developers 网站上使用此代码:

GMSCameraPosition *camera = [GMSCameraPosition cameraWithLatitude:72.34 longitude:19.45 zoom:18];
gmapView = [GMSMapView mapWithFrame:mainView.bounds camera:camera];
gmapView.myLocationEnabled = YES;

以下是我的应用和广告的屏幕截图谷歌地图应用程序:

我的应用

enter image description here

Google地图:

enter image description here

这些是同一个地方的截图!

1 个答案:

答案 0 :(得分:1)

适用于iOS的谷歌地图与适用于iOS的谷歌地方是2种不同的API。我认为您使用的是Google Map API,因此,所有地方都是空的。如果您想在地图上放置地点,我认为您需要了解如何使用Google Places API。

有关详细信息,您可以从以下几个有用的网站中学习:

  1. Google Places API in iOS application
  2. https://developers.google.com/places/documentation/
  3. http://www.raywenderlich.com/13160/using-the-google-places-api-with-mapkit