make use of new tile-specific fetches to allow cancellation

This commit is contained in:
Justin R. Miller
2014-02-19 23:09:48 -08:00
parent fded15dab0
commit d94b8bbcec
2 changed files with 55 additions and 8 deletions

View File

@@ -72,7 +72,7 @@ void Tile::request() {
// Note: Somehow this feels slower than the change to request_http()
std::shared_ptr<Tile> tile = shared_from_this();
platform::request_http(url, [=](platform::Response& res) {
platform::request_http_tile(url, tile, [=](platform::Response& res) {
if (res.code == 200) {
tile->data.swap(res.body);
tile->parse();