forked from organicmaps/organicmaps
[core]writing line styles to kml
This commit is contained in:
parent
8c08bc2cd8
commit
a108d5bf57
1 changed files with 15 additions and 1 deletions
|
@ -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>";
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue