summaryrefslogtreecommitdiff
path: root/linux
diff options
context:
space:
mode:
authorMike Morris <michael.patrick.morris@gmail.com>2014-11-25 14:18:47 -0500
committerMike Morris <michael.patrick.morris@gmail.com>2014-12-03 12:25:11 -0500
commitdac76a0f9269a580706e52b730a98f9b1430bcdf (patch)
treeb7c592b648a443ef456479ddd2e21fe66d22abad /linux
parentd3ab8951530b760afb19e685078b1480babc2209 (diff)
downloadqtlocation-mapboxgl-dac76a0f9269a580706e52b730a98f9b1430bcdf.tar.gz
break out FileSource as an abstract class
add CachingHTTPFileSource implementation
Diffstat (limited to 'linux')
-rw-r--r--linux/main.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/linux/main.cpp b/linux/main.cpp
index c49957349e..9cf23df959 100644
--- a/linux/main.cpp
+++ b/linux/main.cpp
@@ -4,6 +4,7 @@
#include <mbgl/platform/default/settings_json.hpp>
#include <mbgl/platform/default/glfw_view.hpp>
#include <mbgl/platform/default/log_stderr.hpp>
+#include <mbgl/platform/default/caching_http_file_source.hpp>
#include <signal.h>
#include <getopt.h>
@@ -63,7 +64,8 @@ int main(int argc, char *argv[]) {
sigaction(SIGINT, &sigIntHandler, NULL);
view = new GLFWView();
- mbgl::Map map(*view);
+ mbgl::CachingHTTPFileSource fileSource(mbgl::platform::defaultCacheDatabase());
+ mbgl::Map map(*view, fileSource);
// Load settings
mbgl::Settings_JSON settings;