| 64 | std::string const kCompilationFooter = "</" + kCompilation + ">\n"; |
| 65 | |
| 66 | PredefinedColor ExtractPlacemarkPredefinedColor(std::string const & s) |
| 67 | { |
| 68 | if (s == "#placemark-red") |
| 69 | return PredefinedColor::Red; |
| 70 | if (s == "#placemark-blue") |
| 71 | return PredefinedColor::Blue; |
| 72 | if (s == "#placemark-purple") |
| 73 | return PredefinedColor::Purple; |
| 74 | if (s == "#placemark-yellow") |
| 75 | return PredefinedColor::Yellow; |
| 76 | if (s == "#placemark-pink") |
| 77 | return PredefinedColor::Pink; |
| 78 | if (s == "#placemark-brown") |
| 79 | return PredefinedColor::Brown; |
| 80 | if (s == "#placemark-green") |
| 81 | return PredefinedColor::Green; |
| 82 | if (s == "#placemark-orange") |
| 83 | return PredefinedColor::Orange; |
| 84 | if (s == "#placemark-deeppurple") |
| 85 | return PredefinedColor::DeepPurple; |
| 86 | if (s == "#placemark-lightblue") |
| 87 | return PredefinedColor::LightBlue; |
| 88 | if (s == "#placemark-cyan") |
| 89 | return PredefinedColor::Cyan; |
| 90 | if (s == "#placemark-teal") |
| 91 | return PredefinedColor::Teal; |
| 92 | if (s == "#placemark-lime") |
| 93 | return PredefinedColor::Lime; |
| 94 | if (s == "#placemark-deeporange") |
| 95 | return PredefinedColor::DeepOrange; |
| 96 | if (s == "#placemark-gray") |
| 97 | return PredefinedColor::Gray; |
| 98 | if (s == "#placemark-bluegray") |
| 99 | return PredefinedColor::BlueGray; |
| 100 | |
| 101 | // Default color. |
| 102 | return PredefinedColor::Red; |
| 103 | } |
| 104 | |
| 105 | std::string GetStyleForPredefinedColor(PredefinedColor color) |
| 106 | { |