diff options
author | Young Hahn <young@mapbox.com> | 2016-06-15 11:38:22 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-06-15 11:38:22 -0400 |
commit | 24b66bc8cdd40a52e08d198c063daa3e1f6be92a (patch) | |
tree | 6d98a5e1216a83f7d6d4c78422c8306d4a4cb157 /include/mbgl/annotation | |
parent | fe64238b4cd5a7da403a4f29a62b14234ecba569 (diff) | |
download | qtlocation-mapboxgl-24b66bc8cdd40a52e08d198c063daa3e1f6be92a.tar.gz |
Color class (#5361)
* Color class
* Switch to list initialization
Diffstat (limited to 'include/mbgl/annotation')
-rw-r--r-- | include/mbgl/annotation/annotation.hpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/include/mbgl/annotation/annotation.hpp b/include/mbgl/annotation/annotation.hpp index 6cb26e6a82..fc0595af0f 100644 --- a/include/mbgl/annotation/annotation.hpp +++ b/include/mbgl/annotation/annotation.hpp @@ -30,15 +30,15 @@ public: ShapeAnnotationGeometry geometry; float opacity = 1; float width = 1; - Color color = {{ 0, 0, 0, 1 }}; + Color color = { 0, 0, 0, 1 }; }; class FillAnnotation { public: ShapeAnnotationGeometry geometry; float opacity = 1; - Color color = {{ 0, 0, 0, 1 }}; - Color outlineColor = {{ 0, 0, 0, -1 }}; + Color color = { 0, 0, 0, 1 }; + Color outlineColor = { 0, 0, 0, -1 }; }; // An annotation whose type and properties are sourced from a style layer. |