move to per-map access token

This commit is contained in:
Justin R. Miller
2014-07-09 17:18:36 -07:00
parent e66ed8fea4
commit 98a415416a
8 changed files with 40 additions and 20 deletions

View File

@@ -22,7 +22,7 @@ using namespace llmr;
Map::Map(View& view)
: view(view),
transform(),
style(std::make_shared<Style>()),
style(std::make_shared<Style>(*this)),
glyphAtlas(std::make_shared<GlyphAtlas>(1024, 1024)),
spriteAtlas(std::make_shared<SpriteAtlas>(512, 512)),
texturepool(std::make_shared<Texturepool>()),
@@ -183,6 +183,14 @@ std::string Map::getStyleJSON() const {
return styleJSON;
}
void Map::setAccessToken( std::string access_token) {
accessToken.swap(access_token);
}
std::string Map::getAccessToken() const {
return accessToken;
}
#pragma mark - Size
// Note: This function is called from another thread. Make sure you only call threadsafe functions!