-
Notifications
You must be signed in to change notification settings - Fork 319
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
add route overview #4142
add route overview #4142
Conversation
ab846ba
to
ff2a2a2
Compare
Codecov Report
@@ Coverage Diff @@
## main #4142 +/- ##
============================================
- Coverage 59.94% 59.53% -0.41%
Complexity 2357 2357
============================================
Files 328 330 +2
Lines 14158 14255 +97
Branches 1682 1685 +3
============================================
Hits 8487 8487
- Misses 4850 4947 +97
Partials 821 821
|
8b86511
to
d05ddc9
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
...ui-maps/src/main/java/com/mapbox/navigation/ui/maps/camera/view/MapboxRouteOverviewButton.kt
Outdated
Show resolved
Hide resolved
libnavui-util/src/main/java/com/mapbox/navigation/ui/utils/internal/extensions/ViewEx.kt
Show resolved
Hide resolved
libnavui-util/src/main/java/com/mapbox/navigation/ui/utils/internal/extensions/ViewEx.kt
Show resolved
Hide resolved
Doesn't happen to me cc @Guardiola31337 |
a5b2a0b
to
553d5e1
Compare
This diff resolves some of the animations + gestures issues: diff --git a/test-app/src/main/java/com/mapbox/navigation/examples/core/MapboxNavigationActivity.kt b/test-app/src/main/java/com/mapbox/navigation/examples/core/MapboxNavigationActivity.kt
index 4e432566d..0d3fa203f 100644
--- a/test-app/src/main/java/com/mapbox/navigation/examples/core/MapboxNavigationActivity.kt
+++ b/test-app/src/main/java/com/mapbox/navigation/examples/core/MapboxNavigationActivity.kt
@@ -59,6 +59,7 @@ import com.mapbox.navigation.ui.maneuver.model.StepDistanceError
import com.mapbox.navigation.ui.maps.camera.NavigationCamera
import com.mapbox.navigation.ui.maps.camera.data.MapboxNavigationViewportDataSource
import com.mapbox.navigation.ui.maps.camera.data.MapboxNavigationViewportDataSourceOptions
+import com.mapbox.navigation.ui.maps.camera.lifecycle.NavigationBasicGesturesHandler
import com.mapbox.navigation.ui.maps.location.NavigationLocationProvider
import com.mapbox.navigation.ui.maps.route.arrow.api.MapboxRouteArrowApi
import com.mapbox.navigation.ui.maps.route.arrow.api.MapboxRouteArrowView
@@ -314,6 +315,9 @@ class MapboxNavigationActivity :
binding.mapView.getCameraAnimationsPlugin(),
viewportDataSource
)
+ binding.mapView.getCameraAnimationsPlugin().addCameraAnimationsLifecycleListener(
+ NavigationBasicGesturesHandler(navigationCamera)
+ )
init()
tripProgressApi = MapboxTripProgressApi(getTripProgressFormatter())
maneuverApi = MapboxManeuverApi( Not sure if this was exactly what you were struggling with though @Guardiola31337. |
Does the overview button need to have the text? It makes sense for a muted/unmuted button that has different states, but should that also be the case for an overview that is only one action? /cc @d-prukop |
Yeah, I think it makes sense to show this optional text, because we had customers who wanted the text because they didn't know what these buttons are for. So this API in the This API is best served when you show the button for the first time, then you can invoke the API and the user can see the text. Next time onwards don't show it. Same applies to |
553d5e1
to
8890dac
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
...ui-maps/src/main/java/com/mapbox/navigation/ui/maps/camera/view/MapboxRouteOverviewButton.kt
Outdated
Show resolved
Hide resolved
Thanks for pointing it out @Guardiola31337. This issue is more related to how the |
8890dac
to
d165777
Compare
d165777
to
b965b46
Compare
@abhishek1508 could you add tests for this feature? |
Description
Fixes #885
Changelog
Screenshots or Gifs