mirror of
https://codeberg.org/comaps/comaps
synced 2025-12-20 05:13:58 +00:00
[styles] Show public transport stop reference on map
Signed-off-by: Yannik Bloscheck <git@yannikbloscheck.com>
This commit is contained in:
committed by
Yannik Bloscheck
parent
44f0db083f
commit
6dcf4b039e
@@ -60,6 +60,15 @@ void CaptionDescription::Init(FeatureType & f, int8_t deviceLang, int zoomLevel,
|
|||||||
f.GetReadableName(true /* allowTranslit */, deviceLang, out);
|
f.GetReadableName(true /* allowTranslit */, deviceLang, out);
|
||||||
}
|
}
|
||||||
m_mainText = out.GetPrimary();
|
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"));
|
ASSERT(m_auxText.empty() || !m_mainText.empty(), ("auxText without mainText"));
|
||||||
|
|
||||||
uint8_t constexpr kLongCaptionsMaxZoom = 4;
|
uint8_t constexpr kLongCaptionsMaxZoom = 4;
|
||||||
|
|||||||
Reference in New Issue
Block a user