-
-
Notifications
You must be signed in to change notification settings - Fork 991
/
api_mark_point.hpp
40 lines (29 loc) · 1001 Bytes
/
api_mark_point.hpp
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 Organic Maps.
std::string GetSupportedStyle(std::string const & style);
} // style
class ApiMarkPoint : public UserMark
{
public:
ApiMarkPoint(m2::PointD const & ptOrg);
ApiMarkPoint(std::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;
};