MCPcopy Create free account
hub / github.com/comaps/comaps / GetBookmarkIconByFeatureType

Function GetBookmarkIconByFeatureType

libs/map/bookmark_helpers.cpp:687–700  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

685}
686
687kml::BookmarkIcon GetBookmarkIconByFeatureType(uint32_t type)
688{
689 auto typeStr = classif().GetReadableObjectName(type);
690
691 do
692 {
693 auto const itIcon = kFeatureTypeToBookmarkMatchInfo.find(typeStr);
694 if (itIcon != kFeatureTypeToBookmarkMatchInfo.cend())
695 return itIcon->second.m_icon;
696 }
697 while (TruncType(typeStr));
698
699 return kml::BookmarkIcon::None;
700}
701
702void SaveFeatureTypes(feature::TypesHolder const & types, kml::BookmarkData & bmData)
703{

Callers 1

SaveFeatureTypesFunction · 0.85

Calls 4

TruncTypeFunction · 0.85
GetReadableObjectNameMethod · 0.80
findMethod · 0.45
cendMethod · 0.45

Tested by

no test coverage detected