use an event loop per map that is not the render thread

This commit is contained in:
Konstantin Käfer
2014-04-25 14:26:59 +02:00
parent a0d935eac7
commit 666f593803
18 changed files with 152 additions and 112 deletions

View File

@@ -116,7 +116,7 @@ TileData::State Source::addTile(const Tile::ID& id) {
formed_url = util::sprintf<256>(url, normalized_id.z, normalized_id.x, normalized_id.y, (map.getPixelRatio() > 1.0 ? "@2x" : ""));
}
new_tile.data = std::make_shared<TileData>(normalized_id, map.getStyle(), map.getGlyphAtlas(), formed_url, (type == Source::Type::raster));
new_tile.data = std::make_shared<TileData>(normalized_id, map, formed_url, (type == Source::Type::raster));
new_tile.data->request();
tile_data.push_front(new_tile.data);
}