diff options
author | Konstantin Käfer <mail@kkaefer.com> | 2016-01-07 12:05:51 +0100 |
---|---|---|
committer | Konstantin Käfer <mail@kkaefer.com> | 2016-01-15 12:48:23 +0100 |
commit | 180b3f125f191d1912d152d1064228013f39552f (patch) | |
tree | 47836d7c55a088f3bf54c733911efb8b109d8465 /src/mbgl/map/tile_data.hpp | |
parent | 5fe586633cb15c99f77ca478446679acf42fddd1 (diff) | |
download | qtlocation-mapboxgl-180b3f125f191d1912d152d1064228013f39552f.tar.gz |
[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.
Diffstat (limited to 'src/mbgl/map/tile_data.hpp')
-rw-r--r-- | src/mbgl/map/tile_data.hpp | 4 |
1 files changed, 4 insertions, 0 deletions
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; } |