| 32 | } |
| 33 | |
| 34 | void OverlaysTracker::Track(FeatureID const & fid) |
| 35 | { |
| 36 | ASSERT_GREATER_OR_EQUAL(m_zoomLevel, kMinZoomLevel, ()); |
| 37 | |
| 38 | auto it = m_data.find(fid); |
| 39 | if (it == m_data.end()) |
| 40 | return; |
| 41 | |
| 42 | it->second.m_tracked = true; |
| 43 | if (it->second.m_status == OverlayStatus::Invisible) |
| 44 | { |
| 45 | it->second.m_status = OverlayStatus::Visible; |
| 46 | m_events.emplace_back(it->first, static_cast<uint8_t>(m_zoomLevel), EventClock::now(), m_hasMyPosition, |
| 47 | m_myPosition, m_gpsAccuracy); |
| 48 | } |
| 49 | } |
| 50 | |
| 51 | void OverlaysTracker::FinishTracking() |
| 52 | { |
no test coverage detected