mirror of
https://codeberg.org/comaps/comaps
synced 2025-12-19 21:13:35 +00:00
Format all C++ and Java code via clang-format
Signed-off-by: Konstantin Pastbin <konstantin.pastbin@gmail.com>
This commit is contained in:
@@ -6,24 +6,22 @@
|
||||
|
||||
namespace style
|
||||
{
|
||||
std::map<std::string, std::string> kStyleToColor = {
|
||||
{"placemark-red", "BookmarkRed"},
|
||||
{"placemark-blue", "BookmarkBlue"},
|
||||
{"placemark-purple", "BookmarkPurple"},
|
||||
{"placemark-yellow", "BookmarkYellow"},
|
||||
{"placemark-pink", "BookmarkPink"},
|
||||
{"placemark-brown", "BookmarkBrown"},
|
||||
{"placemark-green", "BookmarkGreen"},
|
||||
{"placemark-orange", "BookmarkOrange"},
|
||||
{"placemark-deeppurple", "BookmarkDeepPurple"},
|
||||
{"placemark-lightblue", "BookmarkLightBlue"},
|
||||
{"placemark-cyan", "BookmarkCyan"},
|
||||
{"placemark-teal", "BookmarkTeal"},
|
||||
{"placemark-lime", "BookmarkLime"},
|
||||
{"placemark-deeporange", "BookmarkDeepOrange"},
|
||||
{"placemark-gray", "BookmarkGray"},
|
||||
{"placemark-bluegray", "BookmarkBlueGray"}
|
||||
};
|
||||
std::map<std::string, std::string> kStyleToColor = {{"placemark-red", "BookmarkRed"},
|
||||
{"placemark-blue", "BookmarkBlue"},
|
||||
{"placemark-purple", "BookmarkPurple"},
|
||||
{"placemark-yellow", "BookmarkYellow"},
|
||||
{"placemark-pink", "BookmarkPink"},
|
||||
{"placemark-brown", "BookmarkBrown"},
|
||||
{"placemark-green", "BookmarkGreen"},
|
||||
{"placemark-orange", "BookmarkOrange"},
|
||||
{"placemark-deeppurple", "BookmarkDeepPurple"},
|
||||
{"placemark-lightblue", "BookmarkLightBlue"},
|
||||
{"placemark-cyan", "BookmarkCyan"},
|
||||
{"placemark-teal", "BookmarkTeal"},
|
||||
{"placemark-lime", "BookmarkLime"},
|
||||
{"placemark-deeporange", "BookmarkDeepOrange"},
|
||||
{"placemark-gray", "BookmarkGray"},
|
||||
{"placemark-bluegray", "BookmarkBlueGray"}};
|
||||
|
||||
std::string GetSupportedStyle(std::string const & style)
|
||||
{
|
||||
@@ -32,11 +30,9 @@ std::string GetSupportedStyle(std::string const & style)
|
||||
return "BookmarkGreen";
|
||||
return it->second;
|
||||
}
|
||||
} // style
|
||||
} // namespace style
|
||||
|
||||
ApiMarkPoint::ApiMarkPoint(m2::PointD const & ptOrg)
|
||||
: UserMark(ptOrg, UserMark::Type::API)
|
||||
{}
|
||||
ApiMarkPoint::ApiMarkPoint(m2::PointD const & ptOrg) : UserMark(ptOrg, UserMark::Type::API) {}
|
||||
|
||||
ApiMarkPoint::ApiMarkPoint(std::string const & name, std::string const & id, std::string const & style,
|
||||
m2::PointD const & ptOrg)
|
||||
@@ -48,7 +44,7 @@ ApiMarkPoint::ApiMarkPoint(std::string const & name, std::string const & id, std
|
||||
|
||||
drape_ptr<df::UserPointMark::SymbolNameZoomInfo> ApiMarkPoint::GetSymbolNames() const
|
||||
{
|
||||
//TODO: use its own icon.
|
||||
// TODO: use its own icon.
|
||||
auto symbol = make_unique_dp<SymbolNameZoomInfo>();
|
||||
symbol->insert(std::make_pair(1 /* zoomLevel */, "coloredmark-default-s"));
|
||||
return symbol;
|
||||
|
||||
Reference in New Issue
Block a user