compilation

Signed-off-by: zyphlar <zyphlar@gmail.com>
This commit is contained in:
zyphlar
2026-01-14 03:36:30 -08:00
parent 65bed31195
commit c3642259fb
2 changed files with 10 additions and 4 deletions

View File

@@ -3279,7 +3279,8 @@ void Framework::CheckPanoramaxImagery(place_page::Info & info) const
m_featuresFetcher.GetDataSource().ForEachInRect([&](FeatureType & ft)
{
if (ft.GetTypes().Has(panoramaxType))
feature::TypesHolder types(ft);
if (types.Has(panoramaxType))
{
auto const imageId = ft.GetMetadata(feature::Metadata::FMD_PANORAMAX);
if (!imageId.empty())
@@ -3295,9 +3296,7 @@ void Framework::CheckPanoramaxImagery(place_page::Info & info) const
if (hasPanoramax)
{
info.m_hasPanoramax = true;
info.m_panoramaxImageId = std::move(panoramaxImageId);
info.m_panoramaxUrl = std::move(panoramaxUrl);
info.SetPanoramax(true, std::move(panoramaxImageId), std::move(panoramaxUrl));
}
}

View File

@@ -215,6 +215,13 @@ public:
void SetSelectedObject(df::SelectionShape::ESelectedObject selectedObject) { m_selectedObject = selectedObject; }
df::SelectionShape::ESelectedObject GetSelectedObject() const { return m_selectedObject; }
void SetPanoramax(bool hasPanoramax, std::string && imageId, std::string && url)
{
m_hasPanoramax = hasPanoramax;
m_panoramaxImageId = std::move(imageId);
m_panoramaxUrl = std::move(url);
}
private:
std::string FormatSubtitle(bool withTypes, bool withMainType) const;
std::string GetBookmarkName();