summaryrefslogtreecommitdiff
path: root/include/mbgl/annotation/shape_annotation.hpp
blob: dd8bf5e4d5338bc1be75f215034ef6f28819b0f9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
#ifndef MBGL_ANNOTATION_SHAPE_ANNOTATION
#define MBGL_ANNOTATION_SHAPE_ANNOTATION

#include <mbgl/annotation/annotation.hpp>
#include <mbgl/style/style_properties.hpp>

#include <mbgl/util/geo.hpp>

namespace mbgl {

using AnnotationSegment = std::vector<LatLng>;
using AnnotationSegments = std::vector<AnnotationSegment>;

class ShapeAnnotation {
public:
    inline ShapeAnnotation(const AnnotationSegments& segments_, const StyleProperties& styleProperties_)
        : segments(segments_), styleProperties(styleProperties_) {
    }

    const AnnotationSegments segments;
    const StyleProperties styleProperties;
};

}

#endif