forked from organicmaps/organicmaps
Revert. Preparing for bugfix. Different current position in case of routing start point and current position.
This commit is contained in:
parent
0381110d2d
commit
e9d71d22b0
2 changed files with 1 additions and 7 deletions
|
@ -2124,18 +2124,13 @@ int64_t Framework::GetCurrentDataVersion()
|
|||
return m_storage.GetCurrentDataVersion();
|
||||
}
|
||||
|
||||
bool Framework::GetMyPosition(m2::PointD & myPosition)
|
||||
{
|
||||
return m_drapeEngine->GetMyPosition(myPosition);
|
||||
}
|
||||
|
||||
void Framework::BuildRoute(m2::PointD const & finish, uint32_t timeoutSec)
|
||||
{
|
||||
ASSERT_THREAD_CHECKER(m_threadChecker, ("BuildRoute"));
|
||||
ASSERT(m_drapeEngine != nullptr, ());
|
||||
|
||||
m2::PointD start;
|
||||
if (!GetMyPosition(start))
|
||||
if (!m_drapeEngine->GetMyPosition(start))
|
||||
{
|
||||
CallRouteBuilded(IRouter::NoCurrentPosition, storage::TCountriesVec());
|
||||
return;
|
||||
|
|
|
@ -317,7 +317,6 @@ public:
|
|||
void OnLocationUpdate(location::GpsInfo const & info);
|
||||
void OnCompassUpdate(location::CompassInfo const & info);
|
||||
void SwitchMyPositionNextMode();
|
||||
bool GetMyPosition(m2::PointD & myPosition);
|
||||
/// Should be set before Drape initialization. Guarantees that fn is called in main thread context.
|
||||
void SetMyPositionModeListener(location::TMyPositionModeChanged && fn);
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue