summaryrefslogtreecommitdiff
path: root/include/mbgl/map
diff options
context:
space:
mode:
authorJohn Firebaugh <john.firebaugh@gmail.com>2016-05-31 17:34:11 -0700
committerJohn Firebaugh <john.firebaugh@gmail.com>2016-06-01 17:37:01 -0700
commit0fba70d5a8465499b0dce900e5aa74f7189e4594 (patch)
tree7902b9bd29d25de0de6d116fc3245b1b269477f4 /include/mbgl/map
parentcfd6757ecc9bd4d9b1f4c5266d19da48c529f58b (diff)
downloadqtlocation-mapboxgl-0fba70d5a8465499b0dce900e5aa74f7189e4594.tar.gz
[all] Rationalize annotation API
Diffstat (limited to 'include/mbgl/map')
-rw-r--r--include/mbgl/map/map.hpp13
1 files changed, 2 insertions, 11 deletions
diff --git a/include/mbgl/map/map.hpp b/include/mbgl/map/map.hpp
index f074a5ae54..a728e2dd62 100644
--- a/include/mbgl/map/map.hpp
+++ b/include/mbgl/map/map.hpp
@@ -23,8 +23,6 @@ namespace mbgl {
class FileSource;
class View;
class SpriteImage;
-class PointAnnotation;
-class ShapeAnnotation;
struct CameraOptions;
struct AnimationOptions;
@@ -142,16 +140,9 @@ public:
void removeAnnotationIcon(const std::string&);
double getTopOffsetPixelsForAnnotationIcon(const std::string&);
- AnnotationID addPointAnnotation(const PointAnnotation&);
- AnnotationIDs addPointAnnotations(const std::vector<PointAnnotation>&);
-
- AnnotationID addShapeAnnotation(const ShapeAnnotation&);
- AnnotationIDs addShapeAnnotations(const std::vector<ShapeAnnotation>&);
-
- void updatePointAnnotation(AnnotationID, const PointAnnotation&);
-
+ AnnotationID addAnnotation(const Annotation&);
+ void updateAnnotation(AnnotationID, const Annotation&);
void removeAnnotation(AnnotationID);
- void removeAnnotations(const AnnotationIDs&);
AnnotationIDs getPointAnnotationsInBounds(const LatLngBounds&);