mapbox / mapbox/mapbox-navigation-android

Mapbox 1.5.1 - NavigationView styling not working

Open
#4,629 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

jira-sync-complete
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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.