diff options
author | Thiago Marcos P. Santos <thiago@mapbox.com> | 2015-05-19 00:28:55 +0300 |
---|---|---|
committer | Thiago Marcos P. Santos <thiago@mapbox.com> | 2015-05-22 10:44:18 +0300 |
commit | ac64bef87f5c0b3d23be59de984fd93eb7f2378f (patch) | |
tree | fadbdf96d5b0f9e6c64f1fefbc2a7f3e7e4d4a12 /src/mbgl/map/source.hpp | |
parent | 7274d2e195b419babbc8c10e99af4f6d7803195f (diff) | |
download | qtlocation-mapboxgl-ac64bef87f5c0b3d23be59de984fd93eb7f2378f.tar.gz |
Notify failures when loading tiles
Diffstat (limited to 'src/mbgl/map/source.hpp')
-rw-r--r-- | src/mbgl/map/source.hpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/mbgl/map/source.hpp b/src/mbgl/map/source.hpp index 781e8621a7..303d4d0245 100644 --- a/src/mbgl/map/source.hpp +++ b/src/mbgl/map/source.hpp @@ -61,6 +61,7 @@ public: virtual void onSourceLoadingFailed(std::exception_ptr error) = 0; virtual void onTileLoaded(bool isNewTile) = 0; + virtual void onTileLoadingFailed(std::exception_ptr error) = 0; }; Source(); @@ -106,6 +107,7 @@ private: void emitSourceLoaded(); void emitSourceLoadingFailed(const std::string& message); void emitTileLoaded(bool isNewTile); + void emitTileLoadingFailed(const std::string& message); bool handlePartialTile(const TileID &id, Worker &worker); bool findLoadedChildren(const TileID& id, int32_t maxCoveringZoom, std::forward_list<TileID>& retain); |