Implement Track Selection and elevation info display on PP

Signed-off-by: kavikhalique <kavikhalique3@gmail.com>
This commit is contained in:
kavikhalique
2025-07-25 22:45:32 +05:30
committed by Konstantin Pastbin
parent ebb7c45d1a
commit f1628c70bc
41 changed files with 1181 additions and 436 deletions

View File

@@ -866,7 +866,7 @@ void BookmarkManager::SetElevationActivePoint(kml::TrackId const & trackId, m2::
auto const track = GetTrack(trackId);
CHECK(track != nullptr, ());
SetTrackSelectionInfo({trackId, pt, targetDistance}, false /* notifyListeners */);
SetTrackSelectionInfo({trackId, pt, targetDistance}, true /* notifyListeners */);
m_drapeEngine.SafeCall(&df::DrapeEngine::SelectObject, df::SelectionShape::ESelectedObject::OBJECT_TRACK, pt,
FeatureID(), false /* isAnim */, false /* isGeometrySelectionAllowed */,

View File

@@ -2173,16 +2173,8 @@ place_page::Info Framework::BuildPlacePageInfo(place_page::BuildInfo const & bui
FeatureID selectedFeature = buildInfo.m_featureId;
auto const isFeatureMatchingEnabled = buildInfo.IsFeatureMatchingEnabled();
// @TODO: (KK) Enable track selection.
// The isTrackSelectionEnabled should be removed to enable the track selection when the UI will be implemented.
#if defined(TARGET_OS_IPHONE)
bool constexpr isTrackSelectionEnabled = true;
#else
bool constexpr isTrackSelectionEnabled = false;
#endif
// Using VisualParams inside FindTrackInTapPosition/GetDefaultTapRect requires drapeEngine.
if (isTrackSelectionEnabled && m_drapeEngine != nullptr && buildInfo.IsTrackMatchingEnabled() &&
if (m_drapeEngine != nullptr && buildInfo.IsTrackMatchingEnabled() &&
!(isFeatureMatchingEnabled && selectedFeature.IsValid()))
{
Track::TrackSelectionInfo trackSelectionInfo;