diff options
author | Ivo van Dongen <info@ivovandongen.nl> | 2016-10-19 16:05:36 +0300 |
---|---|---|
committer | Bruno de Oliveira Abinader <bruno@mapbox.com> | 2016-10-20 17:02:40 +0300 |
commit | ab85fdb4524788ce7279e8ac362a0c1edbd5d5df (patch) | |
tree | 7a6511e29020f20d07c4662e53671ad06b3d4b1d /include/mbgl/platform | |
parent | 04a9a98b98d41312a687518fd43445a64dadadf0 (diff) | |
download | qtlocation-mapboxgl-ab85fdb4524788ce7279e8ac362a0c1edbd5d5df.tar.gz |
[glfw] add map change callback methods to glfw_view
Diffstat (limited to 'include/mbgl/platform')
-rw-r--r-- | include/mbgl/platform/default/glfw_view.hpp | 5 |
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; |