summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorjmkiley <jordan.kiley@mapbox.com>2019-07-03 11:30:06 -0700
committerjmkiley <jordan.kiley@mapbox.com>2019-07-09 15:03:39 -0700
commitd3d7ca1493f9831f7f0fcdca0c8089878f115284 (patch)
tree55ff90f6f77276965e200cbcf0d856663e3c8ab4
parent3e9f29ebac5e6ee0268b8b1c3c7e21b75df75611 (diff)
downloadqtlocation-mapboxgl-d3d7ca1493f9831f7f0fcdca0c8089878f115284.tar.gz
[ios] update setmaximumambientcache docs and code
-rw-r--r--platform/darwin/src/MGLOfflineStorage.h2
-rw-r--r--platform/ios/app/MBXAppDelegate.m4
2 files changed, 3 insertions, 3 deletions
diff --git a/platform/darwin/src/MGLOfflineStorage.h b/platform/darwin/src/MGLOfflineStorage.h
index ae1f73635f..10f092ccc2 100644
--- a/platform/darwin/src/MGLOfflineStorage.h
+++ b/platform/darwin/src/MGLOfflineStorage.h
@@ -366,7 +366,7 @@ MGL_EXPORT
ambient cache size to 30 MB and offline packs use 20 MB, there may only be 10 MB
reserved for the ambient cache.
- This method should be called before the database is initialized.
+ This method should be called before the map and map style have been loade.
This method is potentially expensive, as the ambient cache will trim cached data
to prevent the database from being larger than the specified amount.
diff --git a/platform/ios/app/MBXAppDelegate.m b/platform/ios/app/MBXAppDelegate.m
index 27d45c7615..7d2ceaa7f0 100644
--- a/platform/ios/app/MBXAppDelegate.m
+++ b/platform/ios/app/MBXAppDelegate.m
@@ -14,9 +14,9 @@
[MGLLoggingConfiguration sharedConfiguration].loggingLevel = MGLLoggingLevelFault;
#endif
- [[MGLOfflineStorage sharedOfflineStorage] setMaximumAmbientCacheSize:30 withCallback:^(NSError * _Nullable error) {
+ [[MGLOfflineStorage sharedOfflineStorage] setMaximumAmbientCacheSize:30000000 withCallback:^(NSError * _Nullable error) {
if (!error) {
- NSLog(@"Maximum ambient cache size: 30");
+ NSLog(@"Maximum ambient cache size: 30000000");
}
}];
[MGLMetricsManager sharedManager].delegate = self;