| 12 | } |
| 13 | |
| 14 | bool OverlaysTracker::StartTracking(int zoomLevel, bool hasMyPosition, m2::PointD const & myPosition, |
| 15 | double gpsAccuracy) |
| 16 | { |
| 17 | if (zoomLevel < kMinZoomLevel) |
| 18 | { |
| 19 | for (auto & p : m_data) |
| 20 | p.second.m_status = OverlayStatus::Invisible; |
| 21 | return false; |
| 22 | } |
| 23 | |
| 24 | m_zoomLevel = zoomLevel; |
| 25 | m_hasMyPosition = hasMyPosition; |
| 26 | m_myPosition = m_hasMyPosition ? myPosition : m2::PointD(); |
| 27 | m_gpsAccuracy = m_hasMyPosition ? gpsAccuracy : 0.0; |
| 28 | for (auto & p : m_data) |
| 29 | p.second.m_tracked = false; |
| 30 | |
| 31 | return true; |
| 32 | } |
| 33 | |
| 34 | void OverlaysTracker::Track(FeatureID const & fid) |
| 35 | { |
no outgoing calls
no test coverage detected