diff options
author | Vladimir Byko-Ianko <v.bykoianko@corp.mail.ru> | 2015-01-28 16:15:12 +0300 |
---|---|---|
committer | Alex Zolotarev <alex@maps.me> | 2015-09-23 02:36:50 +0300 |
commit | 3b7c568c14f453a6f06aa1a85b7ce48e44ec20f7 (patch) | |
tree | 44e2ace08e3d17761ddfc39d6bc8593a4569d345 /map/location_state.cpp | |
parent | ddabb7b7fe99df38574d18c266c5ad1fdc008082 (diff) |
Hiding the navigation route after current position. Bugfix with arrows on the route near the beginnig.
Diffstat (limited to 'map/location_state.cpp')
-rw-r--r-- | map/location_state.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/map/location_state.cpp b/map/location_state.cpp index f9cb1c2889..dea8915593 100644 --- a/map/location_state.cpp +++ b/map/location_state.cpp @@ -262,6 +262,7 @@ State::State(Params const & p) m_drawDirection(0.0), m_lastGPSBearing(false), m_afterPendingMode(Follow), + m_routeMatchingInfo(), m_currentSlotID(0) { m_locationAreaColor = p.m_locationAreaColor; @@ -390,9 +391,10 @@ void State::TurnOff() invalidate(); } -void State::OnLocationUpdate(location::GpsInfo const & info, bool isNavigable) +void State::OnLocationUpdate(location::GpsInfo const & info, bool isNavigable, location::RouteMatchingInfo const & routeMatchingInfo) { Assign(info, isNavigable); + m_routeMatchingInfo = routeMatchingInfo; setIsVisible(true); |