mapbox / mapbox/mapbox-navigation-android
Mapbox 1.5.1 - NavigationView styling not working
Nobody has claimed this yet.
- Dominant language
- Kotlin
- Stars
- 651
- Forks
- 321
- PR merge metrics
- No merged PRs in 30d
Description
Hi,
If i apply the style to the mapView it works correctly, if i try to apply to NavigationView, the default style appears...always.
My code is the following:
NavigationViewOptions options = NavigationViewOptions.builder(this)
.directionsRoute(internalDirectionRoute)
.shouldSimulateRoute(false)
.navigationListener(this)
.darkThemeResId(darkMapStyle)
.lightThemeResId(lightMapStyle)
.build();
navigationView.startNavigation(options);
Setting darkThemeResId(darkMapStyle) and lightThemeResId(lightMapStyle) doesn't change anything.
Is this a known issue?
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with the NavigationViewOptions configuration and NavigationView.startNavigation call shown in the report, using Mapbox 1.5.1 and the supplied darkThemeResId and lightThemeResId values. Reproduce the behavior and trace how those theme IDs are consumed; done means NavigationView applies the selected custom style instead of the default style.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- android, kotlin
- Domain
- mobile
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 25/100