Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

expose NavigationViewApi.recenterCamera #7713

Merged
merged 1 commit into from
Jan 19, 2024
Merged

Conversation

LukasPaczos
Copy link
Member

Description

Exposes a programatic way to recenter the camera position.

@LukasPaczos LukasPaczos requested a review from a team as a code owner January 18, 2024 16:27
@LukasPaczos LukasPaczos requested review from tomaszrybakiewicz and a team and removed request for a team January 18, 2024 16:27
Copy link

github-actions bot commented Jan 18, 2024

Changelog

Features

  • Added NavigationViewApi#recenterCamera() that allows to programatically recenter the camera position as if the recenter button was clicked. [#7713](https://github.com/mapbox/mapbox-navigation-android/pull/7713)

Bug fixes and improvements

  • Fixed a bug with multiple instances of cache which resulted in excessive memory consumption. [#7688](https://github.com/mapbox/mapbox-navigation-android/pull/7688)
  • Improved Map Matching to avoid false deviation of the location puck to a parallel street. [#7694](https://github.com/mapbox/mapbox-navigation-android/pull/7694)
  • Improved handling of no storage available during navigation tiles downloading. [#7694](https://github.com/mapbox/mapbox-navigation-android/pull/7694)
  • Improved handling of invalid config in DeviceProfile#customConfig. [#7694](https://github.com/mapbox/mapbox-navigation-android/pull/7694)
  • Fixed a native crash in E-Horizon implementation caused by internal race condition. [#7694](https://github.com/mapbox/mapbox-navigation-android/pull/7694)
  • Fixed an issue where reroute for multi-leg routes used to fail in case waypoint_names or waypoint_targets parameters were specified without an explicit waypoint_indices parameter. [#7709](https://github.com/mapbox/mapbox-navigation-android/pull/7709)

Known issues ⚠️

Other changes

Android Auto Changelog

Features

Bug fixes and improvements

  • The app is now considered as the one in active navigation only when an active route is set to MapboxNavigation. Previously it was always considered active. [#7366](https://github.com/mapbox/mapbox-navigation-android/pull/7366)
  • When Android Auto host tells the app to stop active navigation because another app starts navigating, now SDK will enter FreeDrive mode instead of stopping trip session completely. [#7366](https://github.com/mapbox/mapbox-navigation-android/pull/7366)

Copy link

codecov bot commented Jan 18, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (537fc9b) 74.10% compared to head (39cc945) 74.10%.

Impacted file tree graph

@@            Coverage Diff            @@
##               main    #7713   +/-   ##
=========================================
  Coverage     74.10%   74.10%           
- Complexity     6164     6165    +1     
=========================================
  Files           835      835           
  Lines         33170    33175    +5     
  Branches       3957     3957           
=========================================
+ Hits          24579    24584    +5     
  Misses         7055     7055           
  Partials       1536     1536           
Files Coverage Δ
.../com/mapbox/navigation/dropin/NavigationViewApi.kt 100.00% <ø> (ø)
...opin/camera/RecenterButtonComponentContractImpl.kt 100.00% <100.00%> (ø)
...n/dropin/navigationview/MapboxNavigationViewApi.kt 91.56% <100.00%> (+0.20%) ⬆️

@LukasPaczos LukasPaczos merged commit 45fc309 into main Jan 19, 2024
37 of 43 checks passed
@LukasPaczos LukasPaczos deleted the lp/expose-recenter branch January 19, 2024 10:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants