forked from organicmaps/organicmaps
Make ApiMarkPoint a StyledPoint.
This commit is contained in:
parent
89121cdf36
commit
f9f5807b5e
1 changed files with 6 additions and 4 deletions
|
@ -1,20 +1,22 @@
|
|||
#pragma once
|
||||
|
||||
#include "map/user_mark.hpp"
|
||||
#include "map/styled_point.hpp"
|
||||
|
||||
class ApiMarkPoint : public UserMark
|
||||
class ApiMarkPoint : public StyledPoint
|
||||
{
|
||||
public:
|
||||
ApiMarkPoint(m2::PointD const & ptOrg, UserMarkContainer * container)
|
||||
: UserMark(ptOrg, container)
|
||||
: StyledPoint(ptOrg, container)
|
||||
{
|
||||
}
|
||||
|
||||
ApiMarkPoint(string const & name,
|
||||
string const & id,
|
||||
string const & style,
|
||||
m2::PointD const & ptOrg,
|
||||
UserMarkContainer * container)
|
||||
: UserMark(ptOrg, container)
|
||||
: StyledPoint(style, ptOrg, container)
|
||||
, m_name(name)
|
||||
, m_id(id)
|
||||
{
|
||||
|
@ -31,7 +33,7 @@ public:
|
|||
unique_ptr<UserMarkCopy> Copy() const override
|
||||
{
|
||||
return unique_ptr<UserMarkCopy>(
|
||||
new UserMarkCopy(new ApiMarkPoint(m_name, m_id, m_ptOrg, m_container)));
|
||||
new UserMarkCopy(new ApiMarkPoint(m_name, m_id, GetStyle(), m_ptOrg, m_container)));
|
||||
}
|
||||
|
||||
virtual void FillLogEvent(TEventContainer & details) const override
|
||||
|
|
Loading…
Add table
Reference in a new issue