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

Method FillFeatureInfo

libs/map/framework.cpp:699–716  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

697}
698
699void Framework::FillFeatureInfo(FeatureID const & fid, place_page::Info & info) const
700{
701 if (!fid.IsValid())
702 {
703 LOG(LERROR, ("FeatureID is invalid:", fid));
704 return;
705 }
706
707 FeaturesLoaderGuard const guard(m_featuresFetcher.GetDataSource(), fid.m_mwmId);
708 auto ft = guard.GetFeatureByIndex(fid.m_index);
709 if (!ft)
710 {
711 LOG(LERROR, ("Feature can't be loaded:", fid));
712 return;
713 }
714
715 FillInfoFromFeatureType(*ft, info);
716}
717
718void Framework::FillPointInfo(place_page::Info & info, m2::PointD const & mercator,
719 string const & customTitle /* = {} */, FeatureMatcher && matcher /* = nullptr */) const

Callers

nothing calls this directly

Calls 3

GetDataSourceMethod · 0.80
IsValidMethod · 0.45
GetFeatureByIndexMethod · 0.45

Tested by

no test coverage detected