我根据这些文档设置了用户位置图标的样式:
https://docs.mapbox.com/ios/maps/examples/user-location-annotation/
它可以工作,但是虽然我使用了相机和音高,但它是在二维中显示的。我怎样才能让它处于相机的正确视角并且俯仰效果有效?
我用这段代码添加了 MGLMapCamera:
func mapViewDidFinishLoadingMap(_ mapView: MGLMapView) {
// Wait for the map to load before initiating the first camera movement.
mapView.camera = MGLMapCamera(lookingAtCenter: mapView.centerCoordinate, altitude: 200, pitch: 50, heading: 0)
}
安卓没有像gps这样的相机选项模式吗? https://docs.mapbox.com/android/maps/examples/location-component-camera-options/