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

Route line disappears after changing style during active guidance. #3135

Closed
MaximAlien opened this issue Jul 1, 2021 · 0 comments · Fixed by #3136
Closed

Route line disappears after changing style during active guidance. #3135

MaximAlien opened this issue Jul 1, 2021 · 0 comments · Fixed by #3136
Assignees
Milestone

Comments

@MaximAlien
Copy link
Contributor

MaximAlien commented Jul 1, 2021

Mapbox Navigation SDK version: main

Steps to reproduce

To reproduce the issue add code, which allows to change the style. For example:

let timer = Timer.scheduledTimer(timeInterval: 1.0,
                                 target: self,
                                 selector: #selector(changeStyle),
                                 userInfo: nil,
                                 repeats: true)
timer.fire()

@objc func changeStyle() {
    if styleManager?.currentStyleType == .day {
        styleManager?.applyStyle(type: .night)
    } else {
        styleManager?.applyStyle(type: .day)
    }
}
  1. Start example application.
  2. Request route and start active guidance navigation.
  3. Observe behavior.

Expected behavior

Route line should not disappear when style changes.

Actual behavior

After first change of style route line disappears.

Example:
https://user-images.githubusercontent.com/1496498/124120326-803d9a80-da28-11eb-8323-91a0e1b2570c.mov

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 a pull request may close this issue.

1 participant