Update the tiles via ResourceLoader

This commit is contained in:
Thiago Marcos P. Santos
2015-04-21 16:33:58 +02:00
parent f4baa0ba3e
commit d726613f6f
3 changed files with 31 additions and 5 deletions

View File

@@ -41,6 +41,23 @@ void ResourceLoader::setAccessToken(const std::string& accessToken) {
accessToken_ = accessToken;
}
void ResourceLoader::update(MapData& data,
const TransformState& transform,
GlyphAtlas& glyphAtlas,
GlyphStore& glyphStore,
SpriteAtlas& spriteAtlas,
util::ptr<Sprite> sprite,
TexturePool& texturePool) {
if (!style_) {
return;
}
for (const auto& source : style_->sources) {
source->update(
data, transform, *style_, glyphAtlas, glyphStore, spriteAtlas, sprite, texturePool);
}
}
void ResourceLoader::onSourceLoaded() {
emitTileDataChanged();
}