mirror of
https://codeberg.org/comaps/comaps
synced 2026-01-16 10:04:32 +00:00
@@ -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));
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user