forked from organicmaps/organicmaps
[cian] extended preview is disabled
This commit is contained in:
parent
f79816ca8b
commit
6e30725b85
2 changed files with 1 additions and 5 deletions
|
@ -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())
|
||||
|
|
|
@ -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.
|
||||
|
|
Loading…
Add table
Reference in a new issue