summaryrefslogtreecommitdiff
path: root/src/mbgl/annotation/annotation_manager.hpp
diff options
context:
space:
mode:
authorKonstantin Käfer <mail@kkaefer.com>2017-12-22 16:27:31 +0100
committerKonstantin Käfer <mail@kkaefer.com>2018-01-02 19:41:07 +0100
commitac32b41493956e6b03ab13475f27a4dcd64355ae (patch)
treece82e80868c892a3410f260ca7ad11be7477d44e /src/mbgl/annotation/annotation_manager.hpp
parent814c87fbab4608662f90084cff64c27cc5b12bc2 (diff)
downloadqtlocation-mapboxgl-ac32b41493956e6b03ab13475f27a4dcd64355ae.tar.gz
[core] don't tie Annotation geometries to Map maxzoom
Instead, geometry generation via GeoJSONVT is now bound to the hardcoded limit of the annotation tile source.
Diffstat (limited to 'src/mbgl/annotation/annotation_manager.hpp')
-rw-r--r--src/mbgl/annotation/annotation_manager.hpp16
1 files changed, 8 insertions, 8 deletions
diff --git a/src/mbgl/annotation/annotation_manager.hpp b/src/mbgl/annotation/annotation_manager.hpp
index 22b25cd2ac..326565f8bc 100644
--- a/src/mbgl/annotation/annotation_manager.hpp
+++ b/src/mbgl/annotation/annotation_manager.hpp
@@ -28,8 +28,8 @@ public:
AnnotationManager(style::Style&);
~AnnotationManager();
- AnnotationID addAnnotation(const Annotation&, const uint8_t maxZoom);
- bool updateAnnotation(const AnnotationID&, const Annotation&, const uint8_t maxZoom);
+ AnnotationID addAnnotation(const Annotation&);
+ bool updateAnnotation(const AnnotationID&, const Annotation&);
void removeAnnotation(const AnnotationID&);
void addImage(std::unique_ptr<style::Image>);
@@ -49,13 +49,13 @@ public:
static const std::string ShapeLayerID;
private:
- void add(const AnnotationID&, const SymbolAnnotation&, const uint8_t);
- void add(const AnnotationID&, const LineAnnotation&, const uint8_t);
- void add(const AnnotationID&, const FillAnnotation&, const uint8_t);
+ void add(const AnnotationID&, const SymbolAnnotation&);
+ void add(const AnnotationID&, const LineAnnotation&);
+ void add(const AnnotationID&, const FillAnnotation&);
- void update(const AnnotationID&, const SymbolAnnotation&, const uint8_t);
- void update(const AnnotationID&, const LineAnnotation&, const uint8_t);
- void update(const AnnotationID&, const FillAnnotation&, const uint8_t);
+ void update(const AnnotationID&, const SymbolAnnotation&);
+ void update(const AnnotationID&, const LineAnnotation&);
+ void update(const AnnotationID&, const FillAnnotation&);
void remove(const AnnotationID&);