DefaultFileSource has responsibility for handling mapbox:// URLs

This commit is contained in:
John Firebaugh
2015-05-20 08:21:29 -07:00
committed by Konstantin Käfer
parent f11a9f8fd9
commit 87b1da7611
16 changed files with 62 additions and 71 deletions

View File

@@ -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);