Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mapsme/omim.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKirill Zhdanovich <kzhdanovich@gmail.com>2013-10-31 19:12:26 +0400
committerAlex Zolotarev <alex@maps.me>2015-09-23 02:04:33 +0300
commita108d5bf574a60ae554536fc31cf71be9bc232a5 (patch)
tree3b5f03449638f5bbc23f4ca0496abc2c0eaf8b6c /map/bookmark.cpp
parent8c08bc2cd8feed37c0a194d155780a0463e473b2 (diff)
[core]writing line styles to kml
Diffstat (limited to 'map/bookmark.cpp')
-rw-r--r--map/bookmark.cpp16
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>";