0
私はマップボックスを使用していますが、マップを使用しているユーザーの移動中にユーザーにフォローしようとしています。しかし、私は実際の生活の中でユーザーが行うのと同じ方向にカメラを回すことができますか?マップの見出しをどのように設定しますか?
//Create a new MKMapCamera object
let newCameraPosition = MGLMapCamera(lookingAtCenterCoordinate: mapView.centerCoordinate, fromDistance: mapView.camera.altitude + 65, pitch: 70, heading: 0)
// Then you could call it like this
mapView.camera = newCameraPosition
// Track users location
self.mapView.setUserTrackingMode(MGLUserTrackingMode.Follow, animated: true);
ありがとう!
ありがとうございますfriedbunny! – Victor