| 716 | } |
| 717 | |
| 718 | void 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 | |
| 734 | void Framework::FillNotMatchedPlaceInfo(place_page::Info & info, m2::PointD const & mercator, |
| 735 | std::string const & customTitle /* = {} */) const |
nothing calls this directly
no test coverage detected