Add location marker icon and color rendering on the map.

This commit is contained in:
AdenKoperczak 2024-11-28 12:00:36 -05:00
parent 6da34fc151
commit 1a32748b8e
2 changed files with 11 additions and 9 deletions

View file

@ -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();