[android][glfw][ios][macos][node][qt] split backend from mapobserver

This commit is contained in:
Ivo van Dongen
2017-06-13 10:50:16 +03:00
committed by Ivo van Dongen
parent 57351c068b
commit 39a732d7ae
10 changed files with 20 additions and 14 deletions

View File

@@ -20,7 +20,10 @@ namespace node_mbgl {
class NodeBackend : public mbgl::HeadlessBackend {
public:
NodeBackend();
void onDidFailLoadingMap(std::exception_ptr) final;
};
class NodeMapObserver : public mbgl::MapObserver {
void onDidFailLoadingMap(std::exception_ptr) override;
};
class NodeMap : public Nan::ObjectWrap,
@@ -71,6 +74,7 @@ public:
NodeBackend backend;
std::unique_ptr<mbgl::OffscreenView> view;
NodeThreadPool threadpool;
NodeMapObserver mapObserver;
std::unique_ptr<mbgl::Map> map;
std::exception_ptr error;