diff options
author | mapsdroid <sprinter@Sprinter1.local> | 2018-02-08 21:09:40 -0500 |
---|---|---|
committer | mapsdroid <sprinter@Sprinter1.local> | 2018-02-08 21:09:40 -0500 |
commit | 27497f702c6b48c87bcf9da9e08418a6ddde078c (patch) | |
tree | 239df022ef3053a0f319613aa2584e55b868cde9 /include | |
parent | 4498917a3b9dbf6cc9728da01f479a027f27f902 (diff) | |
download | qtlocation-mapboxgl-upstream/md-11108-tile-count.tar.gz |
[core, android] added tileCount to OfflineRegion.upstream/md-11108-tile-count
Diffstat (limited to 'include')
-rw-r--r-- | include/mbgl/storage/offline.hpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/include/mbgl/storage/offline.hpp b/include/mbgl/storage/offline.hpp index ef4a499e83..17808d0c72 100644 --- a/include/mbgl/storage/offline.hpp +++ b/include/mbgl/storage/offline.hpp @@ -13,6 +13,7 @@ namespace mbgl { class TileID; +class LatLngBounds; /* * An offline region defined by a style URL, geographic bounding box, zoom range, and @@ -198,6 +199,9 @@ public: const OfflineRegionDefinition& getDefinition() const; const OfflineRegionMetadata& getMetadata() const; + // Compute only the count of tiles needed for tileCover + uint64_t getTileCount(const LatLngBounds&, uint8_t zoom, uint16_t tileSize) const; + private: friend class OfflineDatabase; |