[core]writing line styles to kml

This commit is contained in:
Kirill Zhdanovich 2013-10-31 18:12:26 +03:00 committed by Alex Zolotarev
parent 8c08bc2cd8
commit a108d5bf57

View file

@ -631,7 +631,21 @@ void BookmarkCategory::SaveToKML(ostream & s)
SaveStringWithCDATA(s, track->GetName());
s << "</name>\n";
/// @todo Save description, style, timestamp
s << "<Style><LineStyle>";
graphics::Color const & col = track->GetColor();
s << "<color>"
<< NumToHex(col.a)
<< NumToHex(col.b)
<< NumToHex(col.g)
<< NumToHex(col.r);
s << "</color>\n";
s << "<width>"
<< track->GetWidth();
s << "</width>\n";
s << "</LineStyle></Style>\n";
// stop style saving
s << " <LineString><coordinates>";