summaryrefslogtreecommitdiff
path: root/include/mbgl/annotation
diff options
context:
space:
mode:
authorJohn Firebaugh <john.firebaugh@gmail.com>2018-07-31 14:21:47 -0700
committerGitHub <noreply@github.com>2018-07-31 14:21:47 -0700
commit9bdd765a02de75851a00ab85223d5d582a104757 (patch)
treebcb417a47808a4a94c171b083c7f2e2cce457107 /include/mbgl/annotation
parent885f6e3c02138398d094e49243817a83349b4d50 (diff)
downloadqtlocation-mapboxgl-9bdd765a02de75851a00ab85223d5d582a104757.tar.gz
[core] Merge DataDrivenPropertyValue into PropertyValue (#12513)
Diffstat (limited to 'include/mbgl/annotation')
-rw-r--r--include/mbgl/annotation/annotation.hpp26
1 files changed, 13 insertions, 13 deletions
diff --git a/include/mbgl/annotation/annotation.hpp b/include/mbgl/annotation/annotation.hpp
index bbe479b5ba..8c099141c4 100644
--- a/include/mbgl/annotation/annotation.hpp
+++ b/include/mbgl/annotation/annotation.hpp
@@ -4,7 +4,7 @@
#include <mbgl/util/variant.hpp>
#include <mbgl/util/color.hpp>
#include <mbgl/style/property_value.hpp>
-#include <mbgl/style/data_driven_property_value.hpp>
+#include <mbgl/style/property_value.hpp>
#include <cstdint>
#include <vector>
@@ -34,35 +34,35 @@ using ShapeAnnotationGeometry = variant<
class LineAnnotation {
public:
LineAnnotation(ShapeAnnotationGeometry geometry_,
- style::DataDrivenPropertyValue<float> opacity_ = 1.0f,
- style::DataDrivenPropertyValue<float> width_ = 1.0f,
- style::DataDrivenPropertyValue<Color> color_ = Color::black())
+ style::PropertyValue<float> opacity_ = 1.0f,
+ style::PropertyValue<float> width_ = 1.0f,
+ style::PropertyValue<Color> color_ = Color::black())
: geometry(std::move(geometry_)),
opacity(std::move(opacity_)),
width(std::move(width_)),
color(std::move(color_)) {}
ShapeAnnotationGeometry geometry;
- style::DataDrivenPropertyValue<float> opacity;
- style::DataDrivenPropertyValue<float> width;
- style::DataDrivenPropertyValue<Color> color;
+ style::PropertyValue<float> opacity;
+ style::PropertyValue<float> width;
+ style::PropertyValue<Color> color;
};
class FillAnnotation {
public:
FillAnnotation(ShapeAnnotationGeometry geometry_,
- style::DataDrivenPropertyValue<float> opacity_ = 1.0f,
- style::DataDrivenPropertyValue<Color> color_ = Color::black(),
- style::DataDrivenPropertyValue<Color> outlineColor_ = {})
+ style::PropertyValue<float> opacity_ = 1.0f,
+ style::PropertyValue<Color> color_ = Color::black(),
+ style::PropertyValue<Color> outlineColor_ = {})
: geometry(std::move(geometry_)),
opacity(std::move(opacity_)),
color(std::move(color_)),
outlineColor(std::move(outlineColor_)) {}
ShapeAnnotationGeometry geometry;
- style::DataDrivenPropertyValue<float> opacity;
- style::DataDrivenPropertyValue<Color> color;
- style::DataDrivenPropertyValue<Color> outlineColor;
+ style::PropertyValue<float> opacity;
+ style::PropertyValue<Color> color;
+ style::PropertyValue<Color> outlineColor;
};
using Annotation = variant<