Skip to content

Commit 068c89c

Browse files
authored
vk-simulation-teleport-fix cherry-pick (#4059)
1 parent 4ad5f99 commit 068c89c

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,7 @@
4848
* Fixed a crash when dismissing `NavigationViewController`. ([#4029](https://github.com/mapbox/mapbox-navigation-ios/pull/4029))
4949
* Fixed an issue where `StyleManager` was not applying style on iPad. ([#4039](https://github.com/mapbox/mapbox-navigation-ios/pull/4039))
5050
* Added filling of `Incident` properties `countryCodeAlpha3`, `countryCode`, `roadIsClosed`, `longDescription`, `numberOfBlockedLanes`, `congestionLevel`, `affectedRoadNames` when receiving `RoadObject` via Electronic Horizon. ([#4045](https://github.com/mapbox/mapbox-navigation-ios/pull/4045))
51+
* Fixed and issue where simulation `inTunnels` or `onPoorGPS` could teleport user puck to the route origin. ([#4058](https://github.com/mapbox/mapbox-navigation-ios/pull/4058))
5152

5253
## v2.6.0
5354

Sources/MapboxCoreNavigation/SimulatedLocationManager.swift

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,9 @@ open class SimulatedLocationManager: NavigationLocationManager {
5959
self.currentSpeed = currentSpeed
6060
self.currentDistance = currentDistance
6161
self.route = route
62+
if currentDistance != 0 {
63+
self.remainingRouteShape = route.shape?.trimmed(from: currentDistance, to: LocationDistance.infinity)
64+
}
6265

6366
restartTimer()
6467

0 commit comments

Comments
 (0)