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

@@ -165,11 +165,9 @@ void MapContext::loadStyleJSON(const std::string& json, const std::string& base)
void MapContext::updateTiles() {
assert(Environment::currentlyOn(ThreadType::Map));
if (!style) return;
for (const auto& source : style->sources) {
source->update(data, transformState, *style, *glyphAtlas, *glyphStore, *spriteAtlas,
getSprite(), *texturePool);
}
resourceLoader->update(data, transformState, *glyphAtlas, *glyphStore,
*spriteAtlas, getSprite(), *texturePool);
}
void MapContext::updateAnnotationTiles(const std::vector<TileID>& ids) {