| 366 | } |
| 367 | |
| 368 | void 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 | |
| 380 | void SampleView::HideUserPosition() |
| 381 | { |
nothing calls this directly
no test coverage detected