【发布时间】:2014-06-15 06:17:05
【问题描述】:
我正在尝试添加默认按钮以返回到谷歌地图中的当前位置。我使用
添加了按钮self.mapView.myLocationButton = YES
但无法隐藏 蓝点,这在我的情况下不需要。
如果我设置
self.mapView.myLocationEnabled = NO
它会删除按当前位置按钮返回当前位置的功能。
下面是我实现的代码
- (void)viewDidLoad
{
[super viewDidLoad];
// Do any additional setup after loading the view.
self.mapView.delegate = self;
self.mapView.settings.myLocationButton = YES;
self.mapView.myLocationEnabled = YES;
}
【问题讨论】:
标签: ios google-maps-sdk-ios currentlocation gmsmapview