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

Method FillMyPositionInfo

libs/map/framework.cpp:804–819  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

802}
803
804void Framework::FillMyPositionInfo(place_page::Info & info, place_page::BuildInfo const & buildInfo) const
805{
806 auto const position = GetCurrentPosition();
807 CHECK(position, ());
808 info.SetMercator(*position);
809 info.SetCustomName(m_stringsBundle.GetString("core_my_position"));
810
811 UserMark const * mark = FindUserMarkInTapPosition(buildInfo);
812 if (mark != nullptr && mark->GetMarkType() == UserMark::Type::ROUTING)
813 {
814 auto routingMark = static_cast<RouteMarkPoint const *>(mark);
815 info.SetIsRoutePoint();
816 info.SetRouteMarkType(routingMark->GetRoutePointType());
817 info.SetIntermediateIndex(routingMark->GetIntermediateIndex());
818 }
819}
820
821void Framework::FillRouteMarkInfo(RouteMarkPoint const & rmp, place_page::Info & info) const
822{

Callers

nothing calls this directly

Calls 9

SetIsRoutePointMethod · 0.80
SetRouteMarkTypeMethod · 0.80
GetRoutePointTypeMethod · 0.80
SetMercatorMethod · 0.45
SetCustomNameMethod · 0.45
GetStringMethod · 0.45
GetMarkTypeMethod · 0.45
SetIntermediateIndexMethod · 0.45
GetIntermediateIndexMethod · 0.45

Tested by

no test coverage detected