diff options
author | Kirill Zhdanovich <kzhdanovich@gmail.com> | 2013-10-31 19:12:26 +0400 |
---|---|---|
committer | Alex Zolotarev <alex@maps.me> | 2015-09-23 02:04:33 +0300 |
commit | a108d5bf574a60ae554536fc31cf71be9bc232a5 (patch) | |
tree | 3b5f03449638f5bbc23f4ca0496abc2c0eaf8b6c /map/bookmark.cpp | |
parent | 8c08bc2cd8feed37c0a194d155780a0463e473b2 (diff) |
[core]writing line styles to kml
Diffstat (limited to 'map/bookmark.cpp')
-rw-r--r-- | map/bookmark.cpp | 16 |
1 files changed, 15 insertions, 1 deletions
diff --git a/map/bookmark.cpp b/map/bookmark.cpp index d02409357d..9cfc140b3b 100644 --- a/map/bookmark.cpp +++ b/map/bookmark.cpp @@ -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>"; |