mirror of
https://github.com/ciphervance/supercell-wx.git
synced 2025-10-30 08:10:05 +00:00
Add location marker icon and color rendering on the map.
This commit is contained in:
parent
6da34fc151
commit
1a32748b8e
2 changed files with 11 additions and 9 deletions
|
|
@ -31,9 +31,6 @@ static const std::string kLongitudeName_ = "longitude";
|
|||
static const std::string kIconName_ = "icon";
|
||||
static const std::string kIconColorName_ = "icon-color";
|
||||
|
||||
static const std::string defaultIconName = types::getMarkerIcons()[0].name;
|
||||
static const boost::gil::rgba8_pixel_t defaultIconColor =
|
||||
util::color::ToRgba8PixelT("#ffff0000");
|
||||
|
||||
class MarkerManager::Impl
|
||||
{
|
||||
|
|
@ -94,6 +91,9 @@ public:
|
|||
friend MarkerRecord tag_invoke(boost::json::value_to_tag<MarkerRecord>,
|
||||
const boost::json::value& jv)
|
||||
{
|
||||
static const std::string defaultIconName = types::getMarkerIcons()[0].name;
|
||||
static const boost::gil::rgba8_pixel_t defaultIconColor =
|
||||
util::color::ToRgba8PixelT("#ffff0000");
|
||||
|
||||
const boost::json::object& jo = jv.as_object();
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue