| 697 | } |
| 698 | |
| 699 | void 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 | |
| 718 | void Framework::FillPointInfo(place_page::Info & info, m2::PointD const & mercator, |
| 719 | string const & customTitle /* = {} */, FeatureMatcher && matcher /* = nullptr */) const |
nothing calls this directly
no test coverage detected