mirror of
https://codeberg.org/comaps/comaps
synced 2025-12-20 21:33:59 +00:00
committed by
Konstantin Pastbin
parent
c9cbb64f12
commit
76ffc99abd
40
libs/map/api_mark_point.hpp
Normal file
40
libs/map/api_mark_point.hpp
Normal file
@@ -0,0 +1,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 CoMaps.
|
||||
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;
|
||||
};
|
||||
Reference in New Issue
Block a user