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

Method OnUserPositionChanged

libs/map/framework.cpp:274–282  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

272}
273
274void Framework::OnUserPositionChanged(m2::PointD const & position, bool hasPosition)
275{
276 GetBookmarkManager().MyPositionMark().SetUserPosition(position, hasPosition);
277 if (m_currentPlacePageInfo && m_currentPlacePageInfo->GetTrackId() != kml::kInvalidTrackId)
278 GetBookmarkManager().UpdateElevationMyPosition(m_currentPlacePageInfo->GetTrackId());
279
280 m_routingManager.SetUserCurrentPosition(position);
281 m_trafficManager.UpdateMyPosition(TrafficManager::MyPosition(position));
282}
283
284void Framework::OnViewportChanged(ScreenBase const & screen)
285{

Callers

nothing calls this directly

Calls 6

SetUserPositionMethod · 0.80
UpdateMyPositionMethod · 0.80
MyPositionClass · 0.70
GetTrackIdMethod · 0.45

Tested by

no test coverage detected