From c670b08ecb431b1bfd02da748de3d9fa16a757ec Mon Sep 17 00:00:00 2001 From: Bruno de Oliveira Abinader Date: Tue, 12 Jul 2016 16:16:21 +0300 Subject: [core] Use PropertyValue for Annotation line/fill --- include/mbgl/annotation/annotation.hpp | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) (limited to 'include/mbgl/annotation') diff --git a/include/mbgl/annotation/annotation.hpp b/include/mbgl/annotation/annotation.hpp index e8ac9a2fb7..a72c65b8c4 100644 --- a/include/mbgl/annotation/annotation.hpp +++ b/include/mbgl/annotation/annotation.hpp @@ -3,6 +3,7 @@ #include #include #include +#include #include #include @@ -28,17 +29,17 @@ using ShapeAnnotationGeometry = variant< class LineAnnotation { public: ShapeAnnotationGeometry geometry; - float opacity = 1; - float width = 1; - Color color = Color::black(); + style::PropertyValue opacity { 1.0f }; + style::PropertyValue width { 1.0f }; + style::PropertyValue color { Color::black() }; }; class FillAnnotation { public: ShapeAnnotationGeometry geometry; - float opacity = 1; - Color color = Color::black(); - Color outlineColor = { 0, 0, 0, -1 }; + style::PropertyValue opacity { 1.0f }; + style::PropertyValue color { Color::black() }; + style::PropertyValue outlineColor {}; }; // An annotation whose type and properties are sourced from a style layer. -- cgit v1.2.1