diff options
author | Asheem Mamoowala <asheem.mamoowala@mapbox.com> | 2017-05-18 13:56:09 -0700 |
---|---|---|
committer | Asheem Mamoowala <asheem.mamoowala@mapbox.com> | 2017-06-01 15:38:01 -0700 |
commit | aa6647e910073edffbd1f3c087ed110927c38aeb (patch) | |
tree | b112a9f14610da986f6436e8a713ae8016e08aef /include/mbgl | |
parent | c0c1028dcf57379db68a87d8d0a1780d9d901fe5 (diff) | |
download | qtlocation-mapboxgl-aa6647e910073edffbd1f3c087ed110927c38aeb.tar.gz |
[core] Offline support for Image Sources
Diffstat (limited to 'include/mbgl')
-rw-r--r-- | include/mbgl/storage/resource.hpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/include/mbgl/storage/resource.hpp b/include/mbgl/storage/resource.hpp index c05f40b65c..7e9ced8049 100644 --- a/include/mbgl/storage/resource.hpp +++ b/include/mbgl/storage/resource.hpp @@ -18,7 +18,8 @@ public: Tile, Glyphs, SpriteImage, - SpriteJSON + SpriteJSON, + Image }; struct TileData { @@ -55,7 +56,8 @@ public: const std::pair<uint16_t, uint16_t>& glyphRange); static Resource spriteImage(const std::string& base, float pixelRatio); static Resource spriteJSON(const std::string& base, float pixelRatio); - + static Resource image(const std::string& url); + Kind kind; Necessity necessity; std::string url; |