[map] enable track selection for ios

Signed-off-by: Kiryl Kaveryn <kirylkaveryn@gmail.com>
This commit is contained in:
Kiryl Kaveryn 2024-11-28 17:41:38 +04:00 committed by Roman Tsisyk
parent 4082a783dc
commit 3a5c9aee89

View file

@ -2240,7 +2240,12 @@ place_page::Info Framework::BuildPlacePageInfo(place_page::BuildInfo const & bui
// @TODO: (KK) Enable track selection.
// The isTrackSelectionEnabled should be removed to enable the track selection when the UI will be implemented.
const bool isTrackSelectionEnabled = false;
#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() &&
!(isFeatureMatchingEnabled && selectedFeature.IsValid()))