diff options
author | Alexander Shalamov <alexander.shalamov@mapbox.com> | 2019-10-07 09:52:29 +0300 |
---|---|---|
committer | Alexander Shalamov <alexander.shalamov@mapbox.com> | 2020-01-13 10:57:23 +0200 |
commit | c8024cf00d1fefb8d736e0cb155326264c48372a (patch) | |
tree | 3eb0726e0077e0b3cf4adf1e0b2f6371c913ce22 /platform/node/src/node_map.hpp | |
parent | 879c44f661c5eb762c93a721b657859a71aabfc7 (diff) | |
download | qtlocation-mapboxgl-c8024cf00d1fefb8d736e0cb155326264c48372a.tar.gz |
[node] Use new FileSourceManager interface
Diffstat (limited to 'platform/node/src/node_map.hpp')
-rw-r--r-- | platform/node/src/node_map.hpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/platform/node/src/node_map.hpp b/platform/node/src/node_map.hpp index aa440d2323..8530448b47 100644 --- a/platform/node/src/node_map.hpp +++ b/platform/node/src/node_map.hpp @@ -2,6 +2,7 @@ #include <mbgl/map/map.hpp> #include <mbgl/storage/file_source.hpp> +#include <mbgl/util/async_request.hpp> #include <mbgl/util/image.hpp> #include <exception> @@ -98,6 +99,7 @@ struct NodeFileSource : public mbgl::FileSource { NodeFileSource(NodeMap* nodeMap_) : nodeMap(nodeMap_) {} ~NodeFileSource() {} std::unique_ptr<mbgl::AsyncRequest> request(const mbgl::Resource&, mbgl::FileSource::Callback) final; + bool canRequest(const mbgl::Resource&) const override; NodeMap* nodeMap; }; |