mirror of
https://codeberg.org/comaps/comaps
synced 2025-12-19 21:13:35 +00:00
Implement Track Selection and elevation info display on PP
Signed-off-by: kavikhalique <kavikhalique3@gmail.com>
This commit is contained in:
committed by
Konstantin Pastbin
parent
ebb7c45d1a
commit
f1628c70bc
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user