diff options
author | Bruno de Oliveira Abinader <bruno@mapbox.com> | 2017-03-13 14:58:40 +0200 |
---|---|---|
committer | Bruno de Oliveira Abinader <bruno@mapbox.com> | 2017-03-15 14:53:32 +0200 |
commit | 2aa20ff47128e1840a51357e02cc691656cffe74 (patch) | |
tree | 800a89010656f72e2ccb7744a1846352b746800b /platform/glfw | |
parent | 2a25b026af8247c446d32353479e11bcb76673e4 (diff) | |
download | qtlocation-mapboxgl-2aa20ff47128e1840a51357e02cc691656cffe74.tar.gz |
[glfw] Support mbgl::MapObserver
Diffstat (limited to 'platform/glfw')
-rw-r--r-- | platform/glfw/glfw_view.cpp | 10 | ||||
-rw-r--r-- | platform/glfw/glfw_view.hpp | 5 |
2 files changed, 0 insertions, 15 deletions
diff --git a/platform/glfw/glfw_view.cpp b/platform/glfw/glfw_view.cpp index 4070a0fe9b..39dca8080b 100644 --- a/platform/glfw/glfw_view.cpp +++ b/platform/glfw/glfw_view.cpp @@ -538,16 +538,6 @@ void GLFWView::setWindowTitle(const std::string& title) { glfwSetWindowTitle(window, (std::string { "Mapbox GL: " } + title).c_str()); } -void GLFWView::setMapChangeCallback(std::function<void(mbgl::MapChange)> callback) { - this->mapChangeCallback = callback; -} - -void GLFWView::notifyMapChange(mbgl::MapChange change) { - if (mapChangeCallback) { - mapChangeCallback(change); - } -} - namespace mbgl { namespace platform { diff --git a/platform/glfw/glfw_view.hpp b/platform/glfw/glfw_view.hpp index a426e58a94..bfabf6cc68 100644 --- a/platform/glfw/glfw_view.hpp +++ b/platform/glfw/glfw_view.hpp @@ -60,9 +60,6 @@ private: // Internal void report(float duration); - void setMapChangeCallback(std::function<void(mbgl::MapChange)> callback); - void notifyMapChange(mbgl::MapChange change) override; - mbgl::Color makeRandomColor() const; mbgl::Point<double> makeRandomPoint() const; static std::shared_ptr<const mbgl::SpriteImage> @@ -81,8 +78,6 @@ private: mbgl::AnnotationIDs annotationIDs; std::vector<std::string> spriteIDs; - std::function<void(mbgl::MapChange)> mapChangeCallback; - private: mbgl::Map* map = nullptr; |