diff --git a/map/framework.cpp b/map/framework.cpp index 289fa78406..e92eb34e1a 100644 --- a/map/framework.cpp +++ b/map/framework.cpp @@ -901,7 +901,6 @@ void Framework::FillInfoFromFeatureType(FeatureType const & ft, place_page::Info info.SetSponsoredType(place_page::SponsoredType::Viator); auto const & sponsoredId = info.GetMetadata().Get(feature::Metadata::FMD_SPONSORED_ID); info.SetSponsoredUrl(viator::Api::GetCityUrl(sponsoredId)); - info.SetPreviewIsExtended(); } else if (ftypes::IsHotelChecker::Instance()(ft)) { @@ -915,7 +914,6 @@ void Framework::FillInfoFromFeatureType(FeatureType const & ft, place_page::Info { info.SetSponsoredType(SponsoredType::Cian); info.SetSponsoredUrl(cian::Api::GetMainPageUrl()); - info.SetPreviewIsExtended(); } else if (ftypes::IsThorChecker::Instance()(ft) && !info.GetMetadata().Get(feature::Metadata::FMD_RATING).empty()) diff --git a/map/place_page_info.hpp b/map/place_page_info.hpp index c047ff961f..bf449c0eb0 100644 --- a/map/place_page_info.hpp +++ b/map/place_page_info.hpp @@ -141,8 +141,7 @@ public: std::string const & GetSponsoredReviewUrl() const { return m_sponsoredReviewUrl; } void SetSponsoredType(SponsoredType type) { m_sponsoredType = type; } SponsoredType GetSponsoredType() const { return m_sponsoredType; } - void SetPreviewIsExtended() { m_isPreviewExtended = true; } - bool IsPreviewExtended() const { return m_isPreviewExtended; } + bool IsPreviewExtended() const { return m_sponsoredType == SponsoredType::Viator; } /// Feature status void SetFeatureStatus(osm::Editor::FeatureStatus const status) { m_featureStatus = status; } @@ -247,7 +246,6 @@ private: bool m_isRoutePoint = false; bool m_isMyPosition = false; - bool m_isPreviewExtended = false; /// Editor /// True if editing of a selected point is allowed by basic logic.