Welcome to mirror list, hosted at ThFree Co, Russian Federation.

api_mark_point.hpp « map - github.com/mapsme/omim.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 5f84cc6103760ec0385674738e99b90a709aad6d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
#pragma once

#include "map/user_mark.hpp"
#include "map/user_mark_layer.hpp"

#include "geometry/point2d.hpp"

#include <string>

namespace style
{
// Fixes icons which are not supported by MapsWithMe.
std::string GetSupportedStyle(std::string const & style);
}  // style

class ApiMarkPoint : public UserMark
{
public:
  ApiMarkPoint(m2::PointD const & ptOrg);

  ApiMarkPoint(string const & name, std::string const & id, std::string const & style,
               m2::PointD const & ptOrg);

  drape_ptr<SymbolNameZoomInfo> GetSymbolNames() const override;
  df::ColorConstant GetColorConstant() const override;

  std::string const & GetName() const { return m_name; }
  void SetName(std::string const & name);

  std::string const & GetApiID() const { return m_id; }
  void SetApiID(std::string const & id);

  void SetStyle(std::string const & style);
  std::string const & GetStyle() const { return m_style; }

private:
  std::string m_name;
  std::string m_id;
  std::string m_style;
};