MCPcopy Create free account
hub / github.com/comaps/comaps / LoseLocation

Method LoseLocation

libs/drape_frontend/my_position_controller.cpp:572–583  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

570}
571
572void MyPositionController::LoseLocation()
573{
574 if (m_mode == location::NotFollowNoPosition)
575 return;
576 else if (m_mode == location::Follow || m_mode == location::FollowAndRotate)
577 ChangeMode(location::PendingPosition);
578 else
579 ChangeMode(location::NotFollowNoPosition);
580
581 if (m_listener != nullptr)
582 m_listener->PositionChanged(Position(), false /* hasPosition */);
583}
584
585void MyPositionController::OnCompassUpdate(location::CompassInfo const & info, ScreenBase const & screen)
586{

Callers

nothing calls this directly

Calls 2

PositionChangedMethod · 0.80
PositionClass · 0.50

Tested by

no test coverage detected