This repository has been archived by the owner on Aug 8, 2023. It is now read-only.
cameraThatFitsShape should accept target pitch as well #11387
Labels
feature
iOS
Mapbox Maps SDK for iOS
macOS
Mapbox Maps SDK for macOS
navigation
For the Mapbox Navigation SDK for Android or iOS or navigation use cases in general
mapbox-gl-native/platform/macos/src/MGLMapView.mm
Lines 1275 to 1296 in 6fa57b7
Since the target pitch of the resulting camera is not exposed, internally we're looking at the pitch of the current map view when calculating the resulting camera.
The addition of another argument (pitch) would allow users to go from a pitched view to unpitched view in one fluid motion.
/cc @asheemmamoowala @frederoni @1ec5
The text was updated successfully, but these errors were encountered: