summaryrefslogtreecommitdiff
path: root/include/mbgl
diff options
context:
space:
mode:
authorAsheem Mamoowala <asheem.mamoowala@mapbox.com>2017-05-18 13:56:09 -0700
committerAsheem Mamoowala <asheem.mamoowala@mapbox.com>2017-06-01 15:38:01 -0700
commitaa6647e910073edffbd1f3c087ed110927c38aeb (patch)
treeb112a9f14610da986f6436e8a713ae8016e08aef /include/mbgl
parentc0c1028dcf57379db68a87d8d0a1780d9d901fe5 (diff)
downloadqtlocation-mapboxgl-aa6647e910073edffbd1f3c087ed110927c38aeb.tar.gz
[core] Offline support for Image Sources
Diffstat (limited to 'include/mbgl')
-rw-r--r--include/mbgl/storage/resource.hpp6
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;