Mapbox-navigation-android: Mapbox zoom LatLngBound sometimes wrong

Created on 24 Apr 2018  路  5Comments  路  Source: mapbox/mapbox-navigation-android

When I use navigationView for my project, i have a function to zoom map in the center of start point and end point:

navigationView..getMapboxMap().easeCamera(CameraUpdateFactory.newLatLngBounds(latLngBounds, 10));

but the strange thing happen: some time it zoom right, some time it zoom wrong (not move to center of LatLngBound).

All 5 comments

Thanks for reporting the issue @thanhnguyenduc157.
This is resolved with https://github.com/mapbox/mapbox-gl-native/pull/11410 that is a part of https://github.com/mapbox/mapbox-navigation-android/pull/697.

so i need upgrade Mapbox Android SDK, right @LukasPaczos ?

Unfortunately, you can't yet because the navigation v0.12.0 and Maps SDK v6.x are incompatible. You will have to wait until #697 is merged and released.

Thanks @LukasPaczos, @thanhnguyenduc157 let's close this issue when #697 is merged. Thank you for bringing this to us!

@thanhnguyenduc157 hey 馃憢 friendly reminder that this should be fixed now (#697 landed last week 馃帀) and it'll be available in the next release. If you'd like, you could double check this using 0.13.0-SNAPSHOT.

Following you can find installation instructions for SNAPSHOTs:

repositories {
    jcenter()
    maven { url "http://oss.sonatype.org/content/repositories/snapshots/" }
    // ...
}

dependencies {
    // ...
    implementation 'com.mapbox.mapboxsdk:mapbox-android-navigation:0.13.0-SNAPSHOT'
    implementation 'com.mapbox.mapboxsdk:mapbox-android-navigation-ui:0.13.0-SNAPSHOT'
    // ...
}

Thanks again!

Was this page helpful?
0 / 5 - 0 ratings

Related issues

zugaldia picture zugaldia  路  6Comments

Guardiola31337 picture Guardiola31337  路  5Comments

shrutiWV picture shrutiWV  路  10Comments

Danny-James picture Danny-James  路  7Comments

hmkum picture hmkum  路  4Comments