Mapbox Navigation SDK v0.20.0
Release Notes
Important Note: With this release, you must include the following snippet in your project’s build.gradle
:
repositories {
maven { url 'https://mapbox.bintray.com/mapbox' }
}
This will ensure the mapbox
dependency is properly downloaded. We will be adding a snippet regarding this in the repo README
and in the Android docs site as well.
Navigation Core libandroid-navigation
- Integration with Mapbox
Navigator
- Mapbox Navigator is a C++ lib that holds logic for route following and offline navigation
- Integration of history APIs that can be used to record route information in a
.json
, helping debug different route behaviors.
Navigation UI libandroid-navigation-ui
- We updated the
InstructionView
APIs for when it is used as a separateView
from theNavigationView
. We did this so the banner instructions are only updated when they need to be (rather than every time aRouteProgress
object is provided):
@Override
public void onProgressChange(Location location, RouteProgress routeProgress) {
instructionView.updateDistanceWith(routeProgress);
}
@Override
public void onMilestoneEvent(RouteProgress routeProgress, String instruction, Milestone milestone) {
instructionView.updateBannerInstructionsWith(milestone);
}
- Added
NavigationMapboxMap
APIs for updating multipleDirectionsRoute
objects, as well as setting a listener for when alternatives are clicked / hiding and showing alternatives. - Added
NavigationMapboxMap
API for updating the location layerRenderMode
. - Fixed 🐛 related to adding click listeners to the
InstructionView
SoundButton
andFeedbackButton
.
Changelog:
- Update Navigator to 3.1.3 #1364
- Delay adding InstructionView default click listeners until subscribed #1362
- Do not remove OffRouteListeners onArrival #1363
- Refine InstructionView update APIs #1355
- Puck Gymnastics #1354
- Fix MultiOnClickListener NPE #1353
- Ignore null locations #1352
- Update nav native to 3.0.1 #1348
- Add separate APIs for updating InstructionView #1340
- Create MultiOnClickListener before View is attached #1345
- Add navigator history functionality #1342
- Navigation native #1336
- Ignore navigation view orientation test #1331
- Add NavigationMapboxMap APIs for showing multiple routes on map #1320
- Add NavigationMapboxMap to set LocationLayer RenderMode #1319
- Update Build Tools 28.0.3 #1313
- Add default roundabout angle value for ManeuverView #1264