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

Method ShowUserPosition

libs/search/search_quality/assessment_tool/sample_view.cpp:368–378  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

366}
367
368void SampleView::ShowUserPosition(m2::PointD const & position)
369{
370 // Clear the old position.
371 HideUserPosition();
372
373 auto es = m_framework.GetBookmarkManager().GetEditSession();
374 auto mark = es.CreateUserMark<ColoredMarkPoint>(position);
375 mark->SetColor(dp::Color(200, 100, 240, 255) /* purple */);
376 mark->SetRadius(8.0f);
377 m_positionMarkId = mark->GetId();
378}
379
380void SampleView::HideUserPosition()
381{

Callers

nothing calls this directly

Calls 5

GetEditSessionMethod · 0.80
SetRadiusMethod · 0.80
ColorClass · 0.50
SetColorMethod · 0.45
GetIdMethod · 0.45

Tested by

no test coverage detected