From 6dcf4b039e1ca6d35f66776bf82f356471ed6002 Mon Sep 17 00:00:00 2001 From: Yannik Bloscheck Date: Thu, 23 Oct 2025 02:22:24 +0200 Subject: [PATCH] [styles] Show public transport stop reference on map Signed-off-by: Yannik Bloscheck --- libs/drape_frontend/stylist.cpp | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/libs/drape_frontend/stylist.cpp b/libs/drape_frontend/stylist.cpp index 90f9aa671..9ee188537 100644 --- a/libs/drape_frontend/stylist.cpp +++ b/libs/drape_frontend/stylist.cpp @@ -60,6 +60,15 @@ void CaptionDescription::Init(FeatureType & f, int8_t deviceLang, int zoomLevel, f.GetReadableName(true /* allowTranslit */, deviceLang, out); } m_mainText = out.GetPrimary(); + + if (ftypes::IsPublicTransportStopChecker::Instance()(feature::TypesHolder(f))) { + auto const lRef = f.GetMetadata(feature::Metadata::FMD_LOCAL_REF); + if (!lRef.empty()) { + //m_mainText.append(" (").append(lRef).append(")"); + m_auxText = lRef; + } + } + ASSERT(m_auxText.empty() || !m_mainText.empty(), ("auxText without mainText")); uint8_t constexpr kLongCaptionsMaxZoom = 4;