From 8985b1311b7d00cf761752bd9291566325ae207a Mon Sep 17 00:00:00 2001 From: John Firebaugh Date: Thu, 26 May 2016 16:35:55 -0700 Subject: [core] Use geometry.hpp types for shape annotations --- include/mbgl/annotation/shape_annotation.hpp | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) (limited to 'include/mbgl/annotation') diff --git a/include/mbgl/annotation/shape_annotation.hpp b/include/mbgl/annotation/shape_annotation.hpp index c5d4c42d87..7dca1ec134 100644 --- a/include/mbgl/annotation/shape_annotation.hpp +++ b/include/mbgl/annotation/shape_annotation.hpp @@ -3,14 +3,11 @@ #include #include -#include +#include #include namespace mbgl { -using AnnotationSegment = std::vector; -using AnnotationSegments = std::vector; - struct FillAnnotationProperties { float opacity = 1; Color color = {{ 0, 0, 0, 1 }}; @@ -30,10 +27,10 @@ public: LineAnnotationProperties, // creates a line annotation std::string>; // creates an annotation whose type and properties are sourced from a style layer - ShapeAnnotation(const AnnotationSegments& segments_, const Properties& properties_) - : segments(segments_), properties(properties_) {} + ShapeAnnotation(const Geometry& geometry_, const Properties& properties_) + : geometry(geometry_), properties(properties_) {} - const AnnotationSegments segments; + const Geometry geometry; const Properties properties; }; -- cgit v1.2.1