summaryrefslogtreecommitdiff
path: root/include/mbgl/annotation
diff options
context:
space:
mode:
Diffstat (limited to 'include/mbgl/annotation')
-rw-r--r--include/mbgl/annotation/shape_annotation.hpp8
1 files changed, 6 insertions, 2 deletions
diff --git a/include/mbgl/annotation/shape_annotation.hpp b/include/mbgl/annotation/shape_annotation.hpp
index dd8bf5e4d5..5e6a13149a 100644
--- a/include/mbgl/annotation/shape_annotation.hpp
+++ b/include/mbgl/annotation/shape_annotation.hpp
@@ -6,6 +6,8 @@
#include <mbgl/util/geo.hpp>
+#include <mapbox/variant.hpp>
+
namespace mbgl {
using AnnotationSegment = std::vector<LatLng>;
@@ -13,12 +15,14 @@ using AnnotationSegments = std::vector<AnnotationSegment>;
class ShapeAnnotation {
public:
- inline ShapeAnnotation(const AnnotationSegments& segments_, const StyleProperties& styleProperties_)
+ using Properties = mapbox::util::variant<FillPaintProperties, LinePaintProperties>;
+
+ inline ShapeAnnotation(const AnnotationSegments& segments_, const Properties& styleProperties_)
: segments(segments_), styleProperties(styleProperties_) {
}
const AnnotationSegments segments;
- const StyleProperties styleProperties;
+ const Properties styleProperties;
};
}