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

Method FillPointInfo

libs/map/framework.cpp:718–732  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

716}
717
718void Framework::FillPointInfo(place_page::Info & info, m2::PointD const & mercator,
719 string const & customTitle /* = {} */, FeatureMatcher && matcher /* = nullptr */) const
720{
721 auto const fid = GetFeatureAtPoint(mercator, std::move(matcher));
722 if (fid.IsValid())
723 {
724 m_featuresFetcher.GetDataSource().ReadFeature([&](FeatureType & ft) { FillInfoFromFeatureType(ft, info); }, fid);
725 // This line overwrites mercator center from area feature which can be far away.
726 info.SetMercator(mercator);
727 }
728 else
729 {
730 FillNotMatchedPlaceInfo(info, mercator, customTitle);
731 }
732}
733
734void Framework::FillNotMatchedPlaceInfo(place_page::Info & info, m2::PointD const & mercator,
735 std::string const & customTitle /* = {} */) const

Callers

nothing calls this directly

Calls 4

ReadFeatureMethod · 0.80
GetDataSourceMethod · 0.80
IsValidMethod · 0.45
SetMercatorMethod · 0.45

Tested by

no test coverage detected