diff options
author | Brent Whitman <brent@pathym.com> | 2016-04-26 13:40:46 -0700 |
---|---|---|
committer | Minh Nguyễn <mxn@1ec5.org> | 2016-04-27 13:41:29 -0700 |
commit | a706a2a48d6ca2076c9c81a0cb0c088ae50d1496 (patch) | |
tree | 07076716389c63588d9d11ef418a0d13b79d7ea2 /platform/darwin/src | |
parent | 6ea257fa6adb0855f49623f1b4d1a241635f2457 (diff) | |
download | qtlocation-mapboxgl-a706a2a48d6ca2076c9c81a0cb0c088ae50d1496.tar.gz |
[ios, osx] Add a property for bytes used by offline tiles
Diffstat (limited to 'platform/darwin/src')
-rw-r--r-- | platform/darwin/src/MGLOfflinePack.h | 6 | ||||
-rw-r--r-- | platform/darwin/src/MGLOfflinePack.mm | 1 |
2 files changed, 6 insertions, 1 deletions
diff --git a/platform/darwin/src/MGLOfflinePack.h b/platform/darwin/src/MGLOfflinePack.h index 083e050ddd..0584abe225 100644 --- a/platform/darwin/src/MGLOfflinePack.h +++ b/platform/darwin/src/MGLOfflinePack.h @@ -60,10 +60,14 @@ typedef struct MGLOfflinePackProgress { */ uint64_t countOfResourcesCompleted; /** - The cumulative size of the downloaded resources on disk, measured in bytes. + The cumulative size of the downloaded resources (inclusive of tiles) on disk, measured in bytes. */ uint64_t countOfBytesCompleted; /** + The cumulative size of the downloaded tiles on disk, measured in bytes. + */ + uint64_t countOfTileBytesCompleted; + /** The minimum number of resources that must be downloaded in order to view the pack’s full region without any omissions. diff --git a/platform/darwin/src/MGLOfflinePack.mm b/platform/darwin/src/MGLOfflinePack.mm index 9c8396f728..72806929ee 100644 --- a/platform/darwin/src/MGLOfflinePack.mm +++ b/platform/darwin/src/MGLOfflinePack.mm @@ -153,6 +153,7 @@ private: MGLOfflinePackProgress progress; progress.countOfResourcesCompleted = status.completedResourceCount; progress.countOfBytesCompleted = status.completedResourceSize; + progress.countOfTileBytesCompleted = status.completedTileSize; progress.countOfResourcesExpected = status.requiredResourceCount; progress.maximumResourcesExpected = status.requiredResourceCountIsPrecise ? status.requiredResourceCount : UINT64_MAX; self.progress = progress; |