mapbox / mapbox-navigation-ios

Turn-by-turn navigation logic and UI in Swift on iOS
https://docs.mapbox.com/ios/navigation/
Other
863 stars 313 forks source link

[Bug]: while rerouting the annotation stop until reroute finish #4571

Closed sunhongjihaha closed 11 months ago

sunhongjihaha commented 11 months ago

Mapbox Navigation SDK version

2.13.0

Steps to reproduce

When using navigation, the annotation stops for a period of time and does not continue tracking until the rerouting is successful. Is there any way to track your current position while reroute 截屏2023-12-07 18 52 13

Expected behavior

annotation tracking the location while reroute

Actual behavior

it stop until reroute finish

Is this a one-time issue or a repeatable issue?

repeatable

kried commented 11 months ago

Hi @sunhongjihaha

Thank you for the report. The Nav SDK allows to track the current user position on the map. The new route line cannot be drawn until it's requested by SDK.

The delay before the reroute is finished should be that large. Are you using default reroute logic? Do you test simulation mode to test reroute? Then faster simulation may result in more visible delays.

sunhongjihaha commented 11 months ago

Hi,@kried Thank you for your answer. I have found a way to solve the problem. changed userLocationStyle to puck2D, the annotation track the current user position on the map.