I have the problem. The icon inside map Navigation Mapbox autoruns, not follow my GPS. I want my phone tracking by GPS and the icon navigation follow my location.
@trinhvanminh2009 Set shouldSimulateRoute = false, this can be done in the following way:
NavigationViewOptions.Builder optionsBuilder = NavigationViewOptions.builder()
.unitType(NavigationUnitType.TYPE_IMPERIAL)
.shouldSimulateRoute(shouldSimulateRoute);
if (route != null) {
optionsBuilder.directionsRoute(route);
NavigationLauncher.startNavigation(this, optionsBuilder.build());
}
Using navigation-ui:0.7.1-SNAPSHOT
@trinhvanminh2009 Yep thanks @Danny-James! That's your solution above ^ you just need to set that boolean to false (which is the default in the builder() as well).
Thank you guys so much!
@trinhvanminh2009 let me know if you still have trouble with this, thanks - closing for now
@danesfeder I have the problem when I tried it.
compile 'com.mapbox.mapboxsdk:mapbox-android-navigation:0.7.1-SNAPSHOT'
compile 'com.mapbox.mapboxsdk:mapbox-android-navigation:0.7.0'navigation.startNavigation(route);. It's auto run
Most helpful comment
@trinhvanminh2009 Yep thanks @Danny-James! That's your solution above ^ you just need to set that boolean to false (which is the default in the
builder()as well).