diff options
Diffstat (limited to 'include/mbgl/map/tile_data.hpp')
-rw-r--r-- | include/mbgl/map/tile_data.hpp | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/include/mbgl/map/tile_data.hpp b/include/mbgl/map/tile_data.hpp index a4b73c339f..416a29d2a5 100644 --- a/include/mbgl/map/tile_data.hpp +++ b/include/mbgl/map/tile_data.hpp @@ -17,6 +17,7 @@ namespace mbgl { class Map; class Painter; class StyleLayer; +class SourceInfo; class TileData : public std::enable_shared_from_this<TileData>, private util::noncopyable { @@ -37,7 +38,7 @@ public: }; public: - TileData(Tile::ID id, Map &map, const std::string url); + TileData(Tile::ID id, Map &map, const SourceInfo &source); ~TileData(); void request(); @@ -60,8 +61,13 @@ public: protected: Map ↦ +public: + const SourceInfo &source; + // Request-related information. const std::string url; + +protected: std::weak_ptr<platform::Request> req; std::string data; |