From 180b3f125f191d1912d152d1064228013f39552f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Konstantin=20K=C3=A4fer?= Date: Thu, 7 Jan 2016 12:05:51 +0100 Subject: [core] don't mark tiles with failed requests as obsolete Otherwise, this will remove them from the map and overwrite the old data. This could happen e.g. when we have connection trouble and a tile needs to be refreshed, or we're displaying stale information and the connection is down. --- src/mbgl/map/tile_data.hpp | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/mbgl/map/tile_data.hpp') diff --git a/src/mbgl/map/tile_data.hpp b/src/mbgl/map/tile_data.hpp index 2bb11054a6..e31cced964 100644 --- a/src/mbgl/map/tile_data.hpp +++ b/src/mbgl/map/tile_data.hpp @@ -88,6 +88,10 @@ public: return state; } + bool hasError() const { + return error.operator bool(); + } + std::exception_ptr getError() const { return error; } -- cgit v1.2.1