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

Method StartTracking

libs/drape_frontend/overlays_tracker.cpp:14–32  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

12}
13
14bool 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
34void OverlaysTracker::Track(FeatureID const & fid)
35{

Callers 1

EndUpdateOverlayTreeMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected