Make ApiMarkPoint a StyledPoint.

This commit is contained in:
Keith Wansbrough 2015-10-21 21:39:21 +01:00
parent 89121cdf36
commit f9f5807b5e

View file

@ -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