mapbox / mapbox-navigation-android

Mapbox Navigation SDK for Android
https://docs.mapbox.com/android/navigation/overview/
Other
621 stars 318 forks source link

Glitchy camera with 3D terrains active #5461

Open Christophe668 opened 2 years ago

Christophe668 commented 2 years ago

Mapbox Navigation: 2.3.0-beta.2

When activating 3D terrains, the camera bounces when a pitch is set.

Let me know if I can provide more data. Thanks!

Steps to trigger behavior

mapView.getMapboxMap().loadStyle(
    styleExtension = style(config.styleUrl) {
        +rasterDemSource("TERRAIN_SOURCE") { url("mapbox://mapbox.mapbox-terrain-dem-v1") }
        +terrain("TERRAIN_SOURCE") { exaggeration(1.1) }
    }, this
)

Expected behavior

https://user-images.githubusercontent.com/1552554/153584694-21cfeda1-9d49-467c-891e-26e3bb3254aa.mp4

Actual behavior

https://user-images.githubusercontent.com/1552554/153584706-59b8def0-649d-4e25-90d2-5f553ccb3e26.mp4

Guardiola31337 commented 2 years ago

@mapbox/maps-android could you help here when you have a chance? 🙏

Also feel free to transfer the issue to your repo if you confirm that belongs to you.

kiryldz commented 2 years ago

@Christophe668 can you share the code how you're changing the camera, please?

Christophe668 commented 2 years ago

Hi @kiryldz So we are using the NavigationCamera.requestNavigationCameraToFollowing() Resulting in this behavior, we are using com.mapbox.navigation:core:2.4.0, I didn't try with Navigation 2.6 yet. Let me know if you need more data.