summaryrefslogtreecommitdiff
path: root/include/mbgl/annotation
diff options
context:
space:
mode:
authorJohn Firebaugh <john.firebaugh@gmail.com>2015-10-19 15:24:22 -0700
committerJohn Firebaugh <john.firebaugh@gmail.com>2015-10-22 09:34:40 -0700
commit3afc8b4a2939da70c76dc5b2eb5d007fc917d348 (patch)
tree176372e3631a81303f379f30de235996f22212f2 /include/mbgl/annotation
parentdf89de5cc5bf043ca2fe57ef4dd9a7b5d25464cb (diff)
downloadqtlocation-mapboxgl-3afc8b4a2939da70c76dc5b2eb5d007fc917d348.tar.gz
[core] Introduce StyleLayer subclasses
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;
};
}