summaryrefslogtreecommitdiff
path: root/include/mbgl/platform
diff options
context:
space:
mode:
Diffstat (limited to 'include/mbgl/platform')
-rw-r--r--include/mbgl/platform/default/glfw_view.hpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/include/mbgl/platform/default/glfw_view.hpp b/include/mbgl/platform/default/glfw_view.hpp
index b352709830..8662a90bf3 100644
--- a/include/mbgl/platform/default/glfw_view.hpp
+++ b/include/mbgl/platform/default/glfw_view.hpp
@@ -42,6 +42,9 @@ public:
void run();
void report(float duration);
+
+ void setMapChangeCallback(std::function<void(mbgl::MapChange)> callback);
+ void notifyMapChange(mbgl::MapChange change) override;
private:
mbgl::Color makeRandomColor() const;
@@ -62,6 +65,8 @@ private:
mbgl::AnnotationIDs annotationIDs;
std::vector<std::string> spriteIDs;
+ std::function<void(mbgl::MapChange)> mapChangeCallback;
+
private:
bool fullscreen = false;
const bool benchmark = false;