summaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
authorJohn Firebaugh <john.firebaugh@gmail.com>2015-05-20 08:21:29 -0700
committerKonstantin Käfer <mail@kkaefer.com>2015-05-26 12:14:10 +0200
commit87b1da761156ec339ab4ccd159e6ba6997f9e7d0 (patch)
treea5b9bdedbff7f6d4edd6945d5ca4f29523b87c06 /bin
parentf11a9f8fd9f4a53195168518f6ef1efe782f1cf8 (diff)
downloadqtlocation-mapboxgl-87b1da761156ec339ab4ccd159e6ba6997f9e7d0.tar.gz
DefaultFileSource has responsibility for handling mapbox:// URLs
Diffstat (limited to 'bin')
-rw-r--r--bin/render.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/bin/render.cpp b/bin/render.cpp
index 740d3dffe5..65cc2e8f43 100644
--- a/bin/render.cpp
+++ b/bin/render.cpp
@@ -81,14 +81,14 @@ int main(int argc, char *argv[]) {
}
}
- HeadlessView view;
- Map map(view, fileSource, MapMode::Still);
-
// Set access token if present
if (token.size()) {
- map.setAccessToken(std::string(token));
+ fileSource.setAccessToken(std::string(token));
}
+ HeadlessView view;
+ Map map(view, fileSource, MapMode::Still);
+
map.setStyleJSON(style, ".");
map.setClasses(classes);