forked from organicmaps/organicmaps-tmp
[core] Refactor move symbols to feature_utils
Signed-off-by: David Martinez <47610359+dvdmrtnz@users.noreply.github.com>
This commit is contained in:
parent
d3ab7272c0
commit
37c4c71ac2
3 changed files with 4 additions and 5 deletions
|
@ -12,6 +12,8 @@ namespace feature
|
|||
{
|
||||
static constexpr uint8_t kMaxStarsCount = 7;
|
||||
static constexpr std::string_view kFieldsSeparator = " • ";
|
||||
static constexpr std::string_view kToiletsSymbol = "🚻";
|
||||
static constexpr std::string_view kAtmSymbol = "💳";
|
||||
static constexpr std::string_view kWheelchairSymbol = "♿️";
|
||||
|
||||
// Address house numbers interpolation.
|
||||
|
|
|
@ -33,8 +33,6 @@ Internet InternetFromString(std::string_view inet);
|
|||
class MapObject
|
||||
{
|
||||
public:
|
||||
static constexpr std::string_view kToiletsSymbol = "🚻";
|
||||
|
||||
void SetFromFeatureType(FeatureType & ft);
|
||||
|
||||
FeatureID const & GetID() const;
|
||||
|
|
|
@ -19,7 +19,6 @@
|
|||
|
||||
namespace place_page
|
||||
{
|
||||
static constexpr std::string_view kAtmSymbol = "💳";
|
||||
|
||||
bool Info::IsBookmark() const
|
||||
{
|
||||
|
@ -176,7 +175,7 @@ std::string Info::FormatSubtitle(bool withType) const
|
|||
|
||||
// ATM
|
||||
if (HasAtm())
|
||||
append(kAtmSymbol);
|
||||
append(feature::kAtmSymbol);
|
||||
|
||||
// Internet.
|
||||
if (HasWifi())
|
||||
|
@ -184,7 +183,7 @@ std::string Info::FormatSubtitle(bool withType) const
|
|||
|
||||
// Toilets.
|
||||
if (HasToilets())
|
||||
append(kToiletsSymbol);
|
||||
append(feature::kToiletsSymbol);
|
||||
|
||||
// Wheelchair
|
||||
if (feature::GetWheelchairType(m_types) == ftraits::WheelchairAvailability::Yes)
|
||||
|
|
Loading…
Add table
Reference in a new issue