问题描述
这是地图的代码,我可以在iPhone屏幕的左下方看到google图标,还可以获取正在搜索但地图未加载的任何地方的位置
mapView.settings.compassButton = true
mapView.isMyLocationEnabled = true
mapView.settings.myLocationButton = true
mapView.settings.allowScrollGesturesDuringRotateOrZoom = true
mapView.animate(toZoom: 11)
if CLLocationManager.locationServicesEnabled() {
locationManager.delegate = self
locationManager.desiredAccuracy = kCLLocationAccuracyNearestTenMeters
locationManager.requestWhenInUseAuthorization()
//locationManager.startUpdatingLocation()
}
let camera = GMSCameraPosition.camera(withLatitude: locationManager.location!.coordinate.latitude,longitude:
locationManager.location!.coordinate.longitude,zoom: 15);
self.mapView.camera = camera
解决方法
暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!
如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。
小编邮箱:dio#foxmail.com (将#修改为@)