Ios 地图盒逐圈导航SDK地图不';t在右角显示限速界面
Mapbox SDK未在右角显示限速UI。下面是代码 Direction.shared.calculate(选项){(会话、结果)输入){Ios 地图盒逐圈导航SDK地图不';t在右角显示限速界面,ios,swift,navigation,mapbox,mapbox-ios,Ios,Swift,Navigation,Mapbox,Mapbox Ios,Mapbox SDK未在右角显示限速UI。下面是代码 Direction.shared.calculate(选项){(会话、结果)输入){ switch result { case .failure(let error): print(error.localizedDescription) case .success(let response): print("Response->&q
switch result {
case .failure(let error):
print(error.localizedDescription)
case .success(let response):
print("Response->", response)
guard let route = response.routes?.first else {
return
}
let navigationService = MapboxNavigationService(route: route, routeIndex: 0, routeOptions: routeOptions, simulating: .always)
let navigationOptions = NavigationOptions(styles: [DayStyle()], navigationService: navigationService)
let navigationViewController = NavigationViewController(for: route, routeIndex: 0, routeOptions: routeOptions, navigationOptions: navigationOptions)
navigationViewController.modalPresentationStyle = .fullScreen
navigationViewController.showsSpeedLimits = true
self.present(navigationViewController, animated: true, completion: nil)
}
}