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

Function SaveStyle

libs/kml/serdes.cpp:142–154  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

140}
141
142void SaveStyle(Writer & writer, std::string const & style, std::string_view const & indent)
143{
144 if (style.empty())
145 return;
146
147 writer << indent << kIndent2 << "<Style id=\"" << style << "\">\n"
148 << indent << kIndent4 << "<IconStyle>\n"
149 << indent << kIndent6 << "<Icon>\n"
150 << indent << kIndent8 << "<href>https://comaps.at/placemarks/" << style << ".png</href>\n"
151 << indent << kIndent6 << "</Icon>\n"
152 << indent << kIndent4 << "</IconStyle>\n"
153 << indent << kIndent2 << "</Style>\n";
154}
155
156void SaveColorToABGR(Writer & writer, uint32_t rgba)
157{

Callers 1

SaveCategoryDataFunction · 0.85

Calls 1

emptyMethod · 0.45

Tested by

no test coverage detected