mapbox / mapbox-navigation-ios

Turn-by-turn navigation logic and UI in Swift on iOS
https://docs.mapbox.com/ios/navigation/
Other
861 stars 314 forks source link

Question - default tracking altitude #1807

Closed tomaszkorab closed 5 years ago

tomaszkorab commented 5 years ago

Hello, I couldn't find answer to my question so I decided to open up issue - if there is somewhere answer, sorry!

My question is if there is possibility to change altitude during tracking - followWithHeading. I'm building custom navigation controller which contains NavigationMapView. Unfortunately, the default altitude seems to be too big for my app. I see there is defaultAltitude in NavigationMapView but I cannot change it.

Best regards

1ec5 commented 5 years ago

NavigationMapView.defaultAltitude is public and variable as of #1709 in v0.21.0, so it should be possible to modify the altitude now. Note that there’s also a zoomedOutMotorwayAltitude for long straightaways on freeways and expressways.