From 849e8b32b4b2febc63ad3df8539b483ccc67ac63 Mon Sep 17 00:00:00 2001 From: John Firebaugh Date: Fri, 22 Jan 2016 19:18:25 -0800 Subject: [core] Ensure that FileSource has access to tile URL, pixelRatio, x, y, z --- include/mbgl/storage/resource.hpp | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'include/mbgl/storage/resource.hpp') diff --git a/include/mbgl/storage/resource.hpp b/include/mbgl/storage/resource.hpp index 8a61702183..532feff14a 100644 --- a/include/mbgl/storage/resource.hpp +++ b/include/mbgl/storage/resource.hpp @@ -31,6 +31,18 @@ public: optional priorModified; optional priorExpires; optional priorEtag; + + // Includes auxiliary data if this is a tile request. + + struct TileData { + std::string urlTemplate; + float pixelRatio; + int32_t x; + int32_t y; + int8_t z; + }; + + optional tileData; }; } // namespace mbgl -- cgit v1.2.1