summaryrefslogtreecommitdiff
path: root/bin/render.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'bin/render.cpp')
-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);