summaryrefslogtreecommitdiff
path: root/src/mbgl/annotation/annotation_tile.hpp
diff options
context:
space:
mode:
authorJohn Firebaugh <john.firebaugh@gmail.com>2015-10-29 12:00:59 -0700
committerJohn Firebaugh <john.firebaugh@gmail.com>2015-10-30 11:17:01 -0700
commit7669e02062ccab9e3d908a9eab04f5d13a7b89c0 (patch)
treeeab604fd472aaa923eb503239a3eadcadaaae40f /src/mbgl/annotation/annotation_tile.hpp
parentf745f271e3ad4a969d98083b658a905f43e3dcd3 (diff)
downloadqtlocation-mapboxgl-7669e02062ccab9e3d908a9eab04f5d13a7b89c0.tar.gz
[core] Monitor annotation tiles, rather than completely invalidating them
Fixes #1688
Diffstat (limited to 'src/mbgl/annotation/annotation_tile.hpp')
-rw-r--r--src/mbgl/annotation/annotation_tile.hpp7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/mbgl/annotation/annotation_tile.hpp b/src/mbgl/annotation/annotation_tile.hpp
index 52955da334..dcd843ed09 100644
--- a/src/mbgl/annotation/annotation_tile.hpp
+++ b/src/mbgl/annotation/annotation_tile.hpp
@@ -43,11 +43,16 @@ class MapData;
class AnnotationTileMonitor : public GeometryTileMonitor {
public:
AnnotationTileMonitor(const TileID&, MapData&);
+ ~AnnotationTileMonitor();
+ void update(std::unique_ptr<GeometryTile>);
Request* monitorTile(std::function<void (std::exception_ptr, std::unique_ptr<GeometryTile>)>) override;
+ TileID tileID;
+
private:
- std::unique_ptr<AnnotationTile> tile;
+ MapData& data;
+ std::function<void (std::exception_ptr, std::unique_ptr<GeometryTile>)> callback;
};
}